diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-29 12:09:45 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-29 12:09:45 -0400 |
commit | 2d6fcd77ab6717f7ea260ab5e8184bafa325b39c (patch) | |
tree | cf9291bb5eb65d2ff9179eaccf1a4a5445591f80 /watch-library/watch/watch_slcd.c | |
parent | 88f41b12fc99542e2ace7b63651971e5907cfd1d (diff) | |
download | Sensor-Watch-2d6fcd77ab6717f7ea260ab5e8184bafa325b39c.tar.gz Sensor-Watch-2d6fcd77ab6717f7ea260ab5e8184bafa325b39c.tar.bz2 Sensor-Watch-2d6fcd77ab6717f7ea260ab5e8184bafa325b39c.zip |
add ability to preview display on USB serial
Diffstat (limited to 'watch-library/watch/watch_slcd.c')
-rw-r--r-- | watch-library/watch/watch_slcd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/watch-library/watch/watch_slcd.c b/watch-library/watch/watch_slcd.c index 63ba7988..05c0bf97 100644 --- a/watch-library/watch/watch_slcd.c +++ b/watch-library/watch/watch_slcd.c @@ -214,6 +214,11 @@ void watch_display_string(char *string, uint8_t position) { i++; if (i >= Num_Chars) break; } + // uncomment this line to see screen output on terminal, i.e. + // FR 29 + // 11 50 23 + // note that for partial displays (positon > 0) it will only show the characters that were updated. + // printf("________\n %c%c %c%c\n%c%c %c%c %c%c\n--------\n", (position > 0) ? ' ' : string[0], (position > 1) ? ' ' : string[1 - position], (position > 2) ? ' ' : string[2 - position], (position > 3) ? ' ' : string[3 - position], (position > 4) ? ' ' : string[4 - position], (position > 5) ? ' ' : string[5 - position], (position > 6) ? ' ' : string[6 - position], (position > 7) ? ' ' : string[7 - position], (position > 8) ? ' ' : string[8 - position], (position > 9) ? ' ' : string[9 - position]); } inline void watch_set_colon() { |