Skip to main content

p5.toio

Index

Classes

Interfaces

Type aliases

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:

NameType
batteryLevelnumber

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:

NameType
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:

NameType
isFlatboolean

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:

NameType
magnetstring

CubePositionIdListner

Ƭ CubePositionIdListner: function

Defined in cube/char/idChar.ts:26

Type declaration:

▸ (info: positionIdInfo): void

Parameters:

NameType
infopositionIdInfo

CubePostureListner

Ƭ CubePostureListner: function

Defined in cube/char/sensorChar.ts:12

Type declaration:

▸ (posture: string): void

Parameters:

NameType
posturestring

CubeProtocolVersionListner

Ƭ CubeProtocolVersionListner: function

Defined in cube/char/configChar.ts:7

Type declaration:

▸ (version: string): void

Parameters:

NameType
versionstring

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:

NameType
shakeLevelnumber

CubeStandardIdListner

Ƭ CubeStandardIdListner: function

Defined in cube/char/idChar.ts:27

Type declaration:

▸ (info: standardIdInfo): void

Parameters:

NameType
infostandardIdInfo

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:


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