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