modelLcd16x2RgbIcon

Icon of a 16x2 character screen with RGB backlight: two-line text and background colour, animated while replaying a result

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

TypeNameDefaultDescription
Integer[16]lcdLine1ASCII codes of visible line 1 - to be fed by the extending model, typically through Internal.Functions.StringToCharCodes
Integer[16]lcdLine2ASCII codes of visible line 2
Real[3]backlightIntensity of the red, green, blue backlight (0-255) - to be fed by the extending model