CVRLCD
CAVRIT includes the ability to display a custom character on one of the digits on the Butterfly's LCD using the "pattern" primative. The pattern primative is used in the form "pattern <character> <digit>" where <character> is a 16-bit value constructed using the below information and <digit> is a number between 1 and 6 representing where the character is to be drawn on the LCD.
In the image below each segment has been assigned a value from A to P (excluding I and O):
Each character is represented by a 16-bit integer using the following table:
15 | 14 | 13 | 12 | 11 | 10 | 09 | 08 | |
---|---|---|---|---|---|---|---|---|
M | P | N | D | L | E | G | C |
07 | 06 | 05 | 04 | 03 | 02 | 01 | 00 | |
---|---|---|---|---|---|---|---|---|
J | F | H | B | K | -- | -- | A |
As an example, the character 'A' in the above figure would be represented by the bitstring:
0b | 0000 | 1111 | 0101 | 0001 |
---|---|---|---|---|
0x | 0 | F | 5 | 1 |
0d | 3921 |