summaryrefslogtreecommitdiffstats
path: root/src/castRay.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-05-21 11:52:32 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-05-21 11:52:32 +0200
commit0a58f41d42a6985fa77e384f9e828ef579e2359f (patch)
treee332e25d59e433b67a103d85dec4bf27a30adc61 /src/castRay.cpp
parentfuck (diff)
downloadwatchoom-0a58f41d42a6985fa77e384f9e828ef579e2359f.tar.gz
watchoom-0a58f41d42a6985fa77e384f9e828ef579e2359f.tar.bz2
watchoom-0a58f41d42a6985fa77e384f9e828ef579e2359f.tar.xz
watchoom-0a58f41d42a6985fa77e384f9e828ef579e2359f.tar.zst
watchoom-0a58f41d42a6985fa77e384f9e828ef579e2359f.zip
does not work
Diffstat (limited to 'src/castRay.cpp')
-rw-r--r--src/castRay.cpp9
1 files changed, 6 insertions, 3 deletions
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();
}