-
Notifications
You must be signed in to change notification settings - Fork 6
GotekLEDC68 t character
solarmon edited this page Aug 8, 2021
·
3 revisions
The Gotek LEDC68 library is provided by coopzone-dc from:
https://github.com/coopzone-dc/GotekLEDC68
By default, the code does not provide support for the lowercase 't' that is used to display 't0' for track zero.
To fix this, a change in the code is required to add support for the lowercase 't' character.
In TM1651.cpp
file.
Find:
static int8_t NumTab[] =
{ 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f,
0x77, 0x7c, 0x39, 0x5e, 0x79, 0x71,
0x00, 0x63, 0x5c, 0x01, 0x40, 0x08
}; //numbers 0-9, A-F, special chars
Add 0x78
to to end of array to add letter "t" as digit ID # 22
:
static int8_t NumTab[] =
{ 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f,
0x77, 0x7c, 0x39, 0x5e, 0x79, 0x71,
0x00, 0x63, 0x5c, 0x01, 0x40, 0x08, 0x78
}; //numbers 0-9, A-F, special chars
In the Arduino code you can then display the 't' character by using the following code:
Display.displayNum(0, 22); // Show letter 't' (0x78)
A useful online LED display simulator and calculator can be found at: