toio.cube.api package¶
- class toio.cube.api.ToioCoreCubeLowLevelAPI(interface: CubeInterface)[source]
Bases:
object
Control APIs This class has control APIs for each characteristic.
- version
Version of supported API
- Type:
str
- battery
Interface to battery characteristic
- Type:
api.Battery
- button
Interface to button characteristic
- Type:
api.Button
- configuration
Interface to configuration characteristic
- Type:
api.Configuration
- id_information
Interface to id information characteristic
- Type:
api.IdInformation
- indicator
Interface to indicator characteristic
- Type:
api.IdInformation
- motor
Interface to motor characteristic
- Type:
api.Motor
- sound
Interface to sound characteristic
- Type:
api.Sound
- __init__(interface: CubeInterface)[source]
Submodules¶
- toio.cube.api.base_class module
- toio.cube.api.battery module
- toio.cube.api.button module
- toio.cube.api.configuration module
RequestProtocolVersion
SetHorizontalDetectionThreshold
SetCollisionDetectionThreshold
SetDoubleTapDetectionTimeInterval
NotificationCondition
SetIdNotification
SetIdMissedNotification
MagneticSensorFunction
MagneticSensorCondition
SetMagneticSensor
MotorSpeedInformationAcquisitionState
SetMotorSpeedInformationAcquisition
PostureAngleDetectionType
PostureAngleDetectionCondition
SetPostureAngleDetection
ProtocolVersion
ResponseIdNotificationSettings
ResponseIdMissedNotificationSettings
ResponseMagneticSensorSettings
ResponseMotorSpeedInformationAcquisitionSettings
ResponsePostureAngleDetectionSettings
ConfigurationResponseType
Configuration
Configuration.is_my_data()
Configuration.__init__()
Configuration.request_protocol_version()
Configuration.set_horizontal_detection_threshold()
Configuration.set_collision_detection_threshold()
Configuration.set_double_tap_detection_threshold()
Configuration.set_id_notification()
Configuration.set_id_missed_notification()
Configuration.set_magnetic_sensor()
Configuration.set_motor_speed_information_acquisition()
Configuration.set_posture_angle_detection()
- toio.cube.api.id_information module
- toio.cube.api.indicator module
- toio.cube.api.motor module
MotorControl
MovementType
RotationOption
TargetPosition
SpeedChangeType
Speed
MotorControlTarget
WriteMode
MotorControlMultipleTargets
AccelerationRotation
AccelerationDirection
AccelerationPriority
MotorControlAcceleration
MotorResponseCode
ResponseMotorControlTarget
ResponseMotorControlMultipleTargets
ResponseMotorSpeed
MotorResponseType
Motor
- toio.cube.api.sensor module
- toio.cube.api.sound module
SoundId
Note
Note.C0
Note.CS0
Note.D0
Note.DS0
Note.E0
Note.F0
Note.FS0
Note.G0
Note.GS0
Note.A0
Note.AS0
Note.B0
Note.C1
Note.CS1
Note.D1
Note.DS1
Note.E1
Note.F1
Note.FS1
Note.G1
Note.GS1
Note.A1
Note.AS1
Note.B1
Note.C2
Note.CS2
Note.D2
Note.DS2
Note.E2
Note.F2
Note.FS2
Note.G2
Note.GS2
Note.A2
Note.AS2
Note.B2
Note.C3
Note.CS3
Note.D3
Note.DS3
Note.E3
Note.F3
Note.FS3
Note.G3
Note.GS3
Note.A3
Note.AS3
Note.B3
Note.C4
Note.CS4
Note.D4
Note.DS4
Note.E4
Note.F4
Note.FS4
Note.G4
Note.GS4
Note.A4
Note.AS4
Note.B4
Note.C5
Note.CS5
Note.D5
Note.DS5
Note.E5
Note.F5
Note.FS5
Note.G5
Note.GS5
Note.A5
Note.AS5
Note.B5
Note.C6
Note.CS6
Note.D6
Note.DS6
Note.E6
Note.F6
Note.FS6
Note.G6
Note.GS6
Note.A6
Note.AS6
Note.B6
Note.C7
Note.CS7
Note.D7
Note.DS7
Note.E7
Note.F7
Note.FS7
Note.G7
Note.GS7
Note.A7
Note.AS7
Note.B7
Note.C8
Note.CS8
Note.D8
Note.DS8
Note.E8
Note.F8
Note.FS8
Note.G8
Note.GS8
Note.A8
Note.AS8
Note.B8
Note.C9
Note.CS9
Note.D9
Note.DS9
Note.E9
Note.F9
Note.FS9
Note.G9
Note.GS9
Note.A9
Note.AS9
Note.B9
Note.C10
Note.CS10
Note.D10
Note.DS10
Note.E10
Note.F10
Note.FS10
Note.G10
Note.NO_SOUND
MidiNote
PlaySoundEffect
PlayMidi
Stop
Sound