Properties
DigitalPins
DigitalPins: {
p1: boolean;
p2: boolean;
p3: boolean;
} = ...
Type declaration
-
p1: boolean
-
p2: boolean
-
p3: boolean
Readonly UUIDS
UUIDS: {
CHARACTERISTICS: {
INDICATE: string;
NOTIFY: string;
WRITE: string;
WRITE_WO_RESPONSE: string;
};
SERVICE_ID: string;
} = ...
Type declaration
-
Readonly CHARACTERISTICS: {
INDICATE: string;
NOTIFY: string;
WRITE: string;
WRITE_WO_RESPONSE: string;
}
-
Readonly INDICATE: string
-
Readonly NOTIFY: string
-
Readonly WRITE: string
-
Readonly WRITE_WO_RESPONSE: string
-
Readonly SERVICE_ID: string
onAnalogInput
onAnalogInput: null | ((requestId, level, analogInputNotifyMode) => void) = null
Type declaration
-
- (requestId, level, analogInputNotifyMode): void
-
Parameters
-
requestId: number
-
level: number
-
analogInputNotifyMode: number
Returns void
onAnalogInputEvent
onAnalogInputEvent: null | ((level) => void) = null
Type declaration
-
- (level): void
-
Returns void
onBatteryLevel
onBatteryLevel: null | ((battery) => void) = null
Type declaration
-
- (battery): void
-
Returns void
onDigitalInput
onDigitalInput: null | ((requestId, pin, state) => void) = null
Type declaration
-
- (requestId, pin, state): void
-
Parameters
-
requestId: number
-
pin: number
-
state: number
Returns void
onDigitalInputEvent
onDigitalInputEvent: null | ((pin, state) => void) = null
Type declaration
-
- (pin, state): void
-
Parameters
-
pin: number
-
state: number
Returns void
onDigitalOutput
onDigitalOutput: null | ((requestId, pin, state) => void) = null
Type declaration
-
- (requestId, pin, state): void
-
Parameters
-
requestId: number
-
pin: number
-
state: number
Returns void
onPwm
onPwm: null | ((requestId, level) => void) = null
Type declaration
-
- (requestId, level): void
-
Parameters
-
requestId: number
-
level: number
Returns void
onStatusButtonPressed
onStatusButtonPressed: null | (() => void) = null
onVOutput
onVOutput: null | ((requestId, vccState) => void) = null
Type declaration
-
- (requestId, vccState): void
-
Parameters
-
requestId: number
-
vccState: number
Returns void
Static Readonly AnalogInputEventCondition
AnalogInputEventCondition: {
ABOVE_THRESHOLD: 17;
BELOW_THRESHOLD: 34;
NOT_NOTIFY: 0;
} = ...
Type declaration
-
Readonly ABOVE_THRESHOLD: 17
-
Readonly BELOW_THRESHOLD: 34
-
Readonly NOT_NOTIFY: 0
Static Readonly AnalogInputNotifyMode
AnalogInputNotifyMode: {
ALWAYS: 2;
ONCE: 1;
STOP: 0;
} = ...
Type declaration
-
Readonly ALWAYS: 2
-
Readonly ONCE: 1
-
Readonly STOP: 0
Static Readonly DigitalInputState
DigitalInputState: {
HIGH: 0;
LOW: 1;
} = ...
Static Readonly Pin
Pin: {
P1: 0;
P2: 1;
P3: 2;
} = ...
Type declaration
-
Readonly P1: 0
-
Readonly P2: 1
-
Readonly P3: 2
Static Readonly State
State: {
HIGH_2_LOW: 2;
LOW_2_HIGH: 1;
} = ...
Type declaration
-
Readonly HIGH_2_LOW: 2
-
Readonly LOW_2_HIGH: 1
Static Readonly Vcc
Vcc: {
OFF: 2;
ON: 1;
} = ...
Type declaration
-
Readonly OFF: 2
-
Readonly ON: 1
Static Readonly VccState
VccState: {
OFF: 0;
ON: 1;
} = ...
Type declaration
-
Readonly OFF: 0
-
Readonly ON: 1
Analog input