From 5cdfcb08fbcaca99c92c157eb929a38ddf6415bb Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 15 Jun 2020 12:47:22 +0100 Subject: working 2nd display --- app/main.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'app/main.c') diff --git a/app/main.c b/app/main.c index 1106316..1604357 100644 --- a/app/main.c +++ b/app/main.c @@ -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) -- cgit v1.2.3