1.5.3 • Published 3 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 syncAPI
startFlashBothLED(...)stopFlashBothLED()turnOnRedLED(...)turnOffRedLED()turnOnBlueLED(...)turnOffBlueLED()isRedLightOn()isBlueLightOn()- Interfaces
startFlashBothLED(...)
startFlashBothLED(options?: LEDControlPluginOptions | undefined) => void| Param | Type |
|---|---|
options | LEDControlPluginOptions |
stopFlashBothLED()
stopFlashBothLED() => voidturnOnRedLED(...)
turnOnRedLED(options?: LEDControlPluginOptions | undefined) => void| Param | Type |
|---|---|
options | LEDControlPluginOptions |
turnOffRedLED()
turnOffRedLED() => voidturnOnBlueLED(...)
turnOnBlueLED(options?: LEDControlPluginOptions | undefined) => void| Param | Type |
|---|---|
options | LEDControlPluginOptions |
turnOffBlueLED()
turnOffBlueLED() => voidisRedLightOn()
isRedLightOn() => Promise<boolean>Returns: Promise<boolean>
isBlueLightOn()
isBlueLightOn() => Promise<boolean>Returns: Promise<boolean>
Interfaces
LEDControlPluginOptions
| Prop | Type |
|---|---|
text | string |
offset | number |