mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
Merge PR #443 - improved t and y character display
The t and y characters were not being displayed optimally in certain positions. This commit improves it substantially by internally remapping those characters to better looking characters when displaying on those positions. Tested-by: David Volovskiy <devolov@gmail.com> Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com> GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/443 References: https://hchargois.github.io/sensor-watch-playground/
This commit is contained in:
commit
dd04443413
|
@ -43,6 +43,8 @@ void watch_display_character(uint8_t character, uint8_t position) {
|
||||||
else if (character == 'M' || character == 'm' || character == 'N') character = 'n'; // M and uppercase N need to be lowercase n
|
else if (character == 'M' || character == 'm' || character == 'N') character = 'n'; // M and uppercase N need to be lowercase n
|
||||||
else if (character == 'c') character = 'C'; // C needs to be uppercase
|
else if (character == 'c') character = 'C'; // C needs to be uppercase
|
||||||
else if (character == 'J') character = 'j'; // same
|
else if (character == 'J') character = 'j'; // same
|
||||||
|
else if (character == 't' || character == 'T') character = '+'; // t in those locations looks like E
|
||||||
|
else if (character == 'y' || character == 'Y') character = '4'; // t in those locations looks like g
|
||||||
else if (character == 'v' || character == 'V' || character == 'U' || character == 'W' || character == 'w') character = 'u'; // bottom segment duplicated, so show in top half
|
else if (character == 'v' || character == 'V' || character == 'U' || character == 'W' || character == 'w') character = 'u'; // bottom segment duplicated, so show in top half
|
||||||
} else {
|
} else {
|
||||||
if (character == 'u') character = 'v'; // we can use the bottom segment; move to lower half
|
if (character == 'u') character = 'v'; // we can use the bottom segment; move to lower half
|
||||||
|
|
Loading…
Reference in a new issue