lcd (Write to the LCD)
If an LCD is attached, it can be written to by using this command.
Syntax: (see 'Command structure)
Copy
lcd row col string
Parameter | Description |
---|---|
row | 0 is the first row, 1 is for the second row |
col | The column number, starting at 0 |
string | Displayed on the LCD. It may contain spaces before, within and after. |
Example
To write “Hello, world” on the far left of the second row:
Copy
lcd 1 0 Hello, world >>
Displaying Icons
As well as ASCII characters, the LCD can display several custom icons. These are accessed by sending the escape sequence <ESC> c, where c is the character '1' .. '8':
c | Icon |
---|---|
1 | Empty battery |
2 | Continuously animated battery |
3 | Cambrionix filled 'o' glyph |
4 | Full battery |
5 | Padlock |
6 | Egg timer |
7 | Custom numeral 1 (aligned to right of bitmap) |
8 | Custom numeral 1 (aligned to middle of bitmap) |