p5.toio
Index
Classes
- Cube
- CubeBase
- CubeBatteryChar
- CubeButtonChar
- CubeChar
- CubeConfigChar
- CubeConnector
- CubeIDChar
- CubeLightChar
- CubeMotorChar
- CubeScanner
- CubeSensorChar
- CubeSoundChar
- P5tCube
Interfaces
Type aliases
- CubeBatteryCharListner
- CubeBatteryLevelListner
- CubeButtonCharListner
- CubeButtonPressedStatusListner
- CubeCharInstance
- CubeCollisionListner
- CubeConfigCharListner
- CubeDoubleTapListner
- CubeFlatListner
- CubeIdCharListner
- CubeListner
- CubeMagnetListner
- CubePositionIdListner
- CubePostureListner
- CubeProtocolVersionListner
- CubeSensorCharListner
- CubeShakeLevelListner
- CubeStandardIdListner
- configInfo
- idInfo
- positionIdInfo
- sensorInfo
- standardIdInfo
Type aliases
CubeBatteryCharListner
Ƭ CubeBatteryCharListner: CubeBatteryLevelListner
Defined in cube/char/batteryChar.ts:3
CubeBatteryLevelListner
Ƭ CubeBatteryLevelListner: function
Defined in cube/char/batteryChar.ts:2
Type declaration:
▸ (batteryLevel
: number): void
Parameters:
Name | Type |
---|---|
batteryLevel | number |
CubeButtonCharListner
Ƭ CubeButtonCharListner: CubeButtonPressedStatusListner
Defined in cube/char/buttonChar.ts:3
CubeButtonPressedStatusListner
Ƭ CubeButtonPressedStatusListner: function
Defined in cube/char/buttonChar.ts:2
Type declaration:
▸ (isPressed?
: undefined | false | true): void
Parameters:
Name | Type |
---|---|
isPressed? | undefined | false | true |
CubeCharInstance
Ƭ CubeCharInstance: CubeIDChar | CubeMotorChar | CubeLightChar | CubeSensorChar | CubeBatteryChar | CubeSoundChar | CubeButtonChar | CubeConfigChar | undefined
Defined in cube/cubeBase.ts:17
CubeCollisionListner
Ƭ CubeCollisionListner: function
Defined in cube/char/sensorChar.ts:10
Type declaration:
▸ (): void
CubeConfigCharListner
Ƭ CubeConfigCharListner: CubeProtocolVersionListner
Defined in cube/char/configChar.ts:8
CubeDoubleTapListner
Ƭ CubeDoubleTapListner: function
Defined in cube/char/sensorChar.ts:11
Type declaration:
▸ (): void
CubeFlatListner
Ƭ CubeFlatListner: function
Defined in cube/char/sensorChar.ts:9
Type declaration:
▸ (isFlat
: boolean): void
Parameters:
Name | Type |
---|---|
isFlat | boolean |
CubeIdCharListner
Ƭ CubeIdCharListner: CubePositionIdListner | CubeStandardIdListner
Defined in cube/char/idChar.ts:28
CubeListner
Ƭ CubeListner: CubeSensorCharListner | CubeBatteryCharListner | CubeButtonCharListner | CubeConfigCharListner | CubeIdCharListner
Defined in cube/cubeBase.ts:10
CubeMagnetListner
Ƭ CubeMagnetListner: function
Defined in cube/char/sensorChar.ts:14
Type declaration:
▸ (magnet
: string): void
Parameters:
Name | Type |
---|---|
magnet | string |
CubePositionIdListner
Ƭ CubePositionIdListner: function
Defined in cube/char/idChar.ts:26
Type declaration:
▸ (info
: positionIdInfo): void
Parameters:
Name | Type |
---|---|
info | positionIdInfo |
CubePostureListner
Ƭ CubePostureListner: function
Defined in cube/char/sensorChar.ts:12
Type declaration:
▸ (posture
: string): void
Parameters:
Name | Type |
---|---|
posture | string |
CubeProtocolVersionListner
Ƭ CubeProtocolVersionListner: function
Defined in cube/char/configChar.ts:7
Type declaration:
▸ (version
: string): void
Parameters:
Name | Type |
---|---|
version | string |
CubeSensorCharListner
Ƭ CubeSensorCharListner: CubeFlatListner | CubeCollisionListner | CubeDoubleTapListner | CubePostureListner | CubeShakeLevelListner | CubeMagnetListner
Defined in cube/char/sensorChar.ts:15
CubeShakeLevelListner
Ƭ CubeShakeLevelListner: function
Defined in cube/char/sensorChar.ts:13
Type declaration:
▸ (shakeLevel
: number): void
Parameters:
Name | Type |
---|---|
shakeLevel | number |
CubeStandardIdListner
Ƭ CubeStandardIdListner: function
Defined in cube/char/idChar.ts:27
Type declaration:
▸ (info
: standardIdInfo): void
Parameters:
Name | Type |
---|---|
info | standardIdInfo |
configInfo
Ƭ configInfo: object
Defined in cube/char/configChar.ts:3
Type declaration:
- bleProtcolVersion: string
idInfo
Ƭ idInfo: object
Defined in cube/char/idChar.ts:21
Type declaration:
positionId: positionIdInfo
standardId: standardIdInfo
positionIdInfo
Ƭ positionIdInfo: object | undefined
Defined in cube/char/idChar.ts:3
sensorInfo
Ƭ sensorInfo: object
Defined in cube/char/sensorChar.ts:2
Type declaration:
flat: boolean
magnet: string
posture: string
shakeLevel: number
standardIdInfo
Ƭ standardIdInfo: object | undefined
Defined in cube/char/idChar.ts:13