led
The sos.hardware.led
API groups together methods for controlling LEDs of the device. This is currently only supported by Phillips
devices.
Methods
setColor()
The setColor()
methods sets the LED color (if string is passed) or disabled (if null is passed).
setColor(color: string | null): Promise<void>;
API Example
import { sos } from '@signageos/front-applet';
void sos.onReady(async () => {
await sos.hardware.led.setColor('#00FF00'); // For GREEN light
});