The led module can be used to change the brightness off the on-board LEDs.
There are 4 LEDs which can be controlled. The LEDs are driven by a PWM signal allowing to change the brightness.
|backlight||Number||The backlight of the LCD.||Write Only|
|red||Number||The red component of the RGB LED.||Write Only|
|green||Number||The green component of the RGB LED.||Write Only|
|blue||Number||The blue component of the RGB LED.||Write Only|
Valid values for the 4 different LEDs are between 0 (off) and 255 (full brightness).
In the field approach each color of a led will be used as an individual led.
In practice an RGB led is one physical led which consists of 3 leds which emit one color.
With the functions below it is possible to set a physical led, with a certain color.
|led.blink( id, onColor, offColor, onTime, offTime, times )||Makes a physical led with id blink.|
led.blink( id, onColor, offColor, onTime, offTime, times )
|id||Number||ID of physical LED.|
|onColor||Number||RGB value of ontime during blinking.|
|offColor||Number||RGB value of offtime during blinking.|
Time in milliseconds the led is on during blinking.
Time in milliseconds the led is off during blinking.
|times||Number||How may times the led will blink. (will blink until infinity when nil )|