1.5.3 • Published 2 years ago
capacitor-plugin-ledcontrol v1.5.3
capacitor-plugin-ledcontrol
LED Control for Citaq H10-2
Install
npm install capacitor-plugin-ledcontrol
npx cap sync
API
startFlashBothLED(...)
stopFlashBothLED()
turnOnRedLED(...)
turnOffRedLED()
turnOnBlueLED(...)
turnOffBlueLED()
isRedLightOn()
isBlueLightOn()
- Interfaces
startFlashBothLED(...)
startFlashBothLED(options?: LEDControlPluginOptions | undefined) => void
Param | Type |
---|---|
options | LEDControlPluginOptions |
stopFlashBothLED()
stopFlashBothLED() => void
turnOnRedLED(...)
turnOnRedLED(options?: LEDControlPluginOptions | undefined) => void
Param | Type |
---|---|
options | LEDControlPluginOptions |
turnOffRedLED()
turnOffRedLED() => void
turnOnBlueLED(...)
turnOnBlueLED(options?: LEDControlPluginOptions | undefined) => void
Param | Type |
---|---|
options | LEDControlPluginOptions |
turnOffBlueLED()
turnOffBlueLED() => void
isRedLightOn()
isRedLightOn() => Promise<boolean>
Returns: Promise<boolean>
isBlueLightOn()
isBlueLightOn() => Promise<boolean>
Returns: Promise<boolean>
Interfaces
LEDControlPluginOptions
Prop | Type |
---|---|
text | string |
offset | number |