From 0a58f41d42a6985fa77e384f9e828ef579e2359f Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Sat, 21 May 2022 11:52:32 +0200 Subject: does not work --- src/castRay.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/castRay.cpp') diff --git a/src/castRay.cpp b/src/castRay.cpp index 866a2a0..474d5f1 100644 --- a/src/castRay.cpp +++ b/src/castRay.cpp @@ -4,7 +4,10 @@ void CastRay::drawLoop() { display.fillScreen(GxEPD_WHITE); - draw_doom(); + if (displayPtr) + { + drawDoom(); + } } void CastRay::drawWatchFace() @@ -12,10 +15,10 @@ void CastRay::drawWatchFace() display.fillScreen(GxEPD_WHITE); display.setTextColor(GxEPD_BLACK); - display.setFont(&DSEG7_Classic_Bold_53); + + display.setFont(&Seven_Segment10pt7b); display.setCursor(5, 53+5); display.print("0x0x0x0x0"); displayPtr = &display; - usleep(1); this->drawLoop(); } -- cgit v1.2.3