modelLcd16x2RgbIcon
Information
Purely graphical base class, the 16x2 counterpart of Internal.Icons.TwoLineTextIcon: it carries only the icon, the two arrays of codes it shows and the backlight colour. The extending model decides where these values come from (Peripherals.I2cGroveLcdRgb: text returned by lines(), colour returned by outputs() of the screen's script).
Same precautions as TwoLineTextIcon: integer ASCII codes rather than a String (not stored in the results), comparison with a tolerance (abs(code - N) < 0.5) rather than with equality. The background takes the backlight colour (dark grey when it is off, like a real screen).
Character set: space, digits, letters, and ! " # & ' ( ) * + , - . / : < = > ? _; any other character is shown as a space. The 32 cells were generated mechanically, not written by hand.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Integer[16] | lcdLine1 | ASCII codes of visible line 1 - to be fed by the extending model, typically through Internal.Functions.StringToCharCodes | |
| Integer[16] | lcdLine2 | ASCII codes of visible line 2 | |
| Real[3] | backlight | Intensity of the red, green, blue backlight (0-255) - to be fed by the extending model |