diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-03 18:48:55 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-03 18:48:55 -0400 |
commit | 8d5280a34f1159d8af0277ba04b7e1cb9c8bd7ac (patch) | |
tree | 21e2c1a270ff3f659946f2a57a0f14fdb7eddf2f /watch-library/watch/watch_slcd.c | |
parent | 95ea714d61b058f2b25aea6c01021cb3b3b2c3be (diff) | |
download | Sensor-Watch-8d5280a34f1159d8af0277ba04b7e1cb9c8bd7ac.tar.gz Sensor-Watch-8d5280a34f1159d8af0277ba04b7e1cb9c8bd7ac.tar.bz2 Sensor-Watch-8d5280a34f1159d8af0277ba04b7e1cb9c8bd7ac.zip |
slcd: add function to blank entire screen
Diffstat (limited to 'watch-library/watch/watch_slcd.c')
-rw-r--r-- | watch-library/watch/watch_slcd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/watch-library/watch/watch_slcd.c b/watch-library/watch/watch_slcd.c index ba9d12b2..c1e24308 100644 --- a/watch-library/watch/watch_slcd.c +++ b/watch-library/watch/watch_slcd.c @@ -162,6 +162,12 @@ inline void watch_clear_pixel(uint8_t com, uint8_t seg) { slcd_sync_seg_off(&SEGMENT_LCD_0, SLCD_SEGID(com, seg)); } +void watch_clear_display() { + SLCD->SDATAL0.reg = 0; + SLCD->SDATAL1.reg = 0; + SLCD->SDATAL2.reg = 0; +} + void watch_display_character(uint8_t character, uint8_t position) { // handle lowercase 7 if needed if (character == '7' && (position == 4 || position == 6)) character = '&'; |