diff options
author | fishsoupisgood <github@madingley.org> | 2020-06-15 12:47:22 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2020-06-15 12:47:22 +0100 |
commit | 5cdfcb08fbcaca99c92c157eb929a38ddf6415bb (patch) | |
tree | fff177a759464d4b4e6cd6e310bda5a6a2eb624a /app/main.c | |
parent | bb8fe01e1cc1ed31a4c13f5619e89b45a9004f07 (diff) | |
download | robs_speedo-5cdfcb08fbcaca99c92c157eb929a38ddf6415bb.tar.gz robs_speedo-5cdfcb08fbcaca99c92c157eb929a38ddf6415bb.tar.bz2 robs_speedo-5cdfcb08fbcaca99c92c157eb929a38ddf6415bb.zip |
working 2nd display
Diffstat (limited to 'app/main.c')
-rw-r--r-- | app/main.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -42,11 +42,12 @@ main (void) led_set (); - oled_init (); + oled1_init (); + oled2_init (); tacho_init (); - font8x8_put_str ("ABC fish soup!", 0, 0); + font8x8_put_str (vram_1, "ABC fish soup!", 0, 0); MAP_OUTPUT_PP (WIGGLE); @@ -56,10 +57,13 @@ main (void) char buf[20]; sprintf (buf, "%6u rpm", (unsigned) raw_tacho); - font8x16_put_str (buf, 30, 8); + font8x16_put_str (vram_1, buf, 30, 8); sprintf (buf, "%8d", cnt++); - font8x8_put_str (buf, 0, 24); + font8x8_put_str (vram_1, buf, 0, 24); + + sprintf (buf, "%6d", cnt >> 4); + font21x32_put_str (vram_2, buf, 0); if (cnt & 1) |