summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-10-11 20:41:38 +0200
committerJonas Smedegaard <dr@jones.dk>2023-10-11 20:41:38 +0200
commit45fa81c8540c4636dd0bf4c2081cd15f8b571738 (patch)
tree949b7171f64b5b22ee65e5e163dd0434327735b5
parentd67f7a1fd46cde581c37928ef47ad2413263f7e7 (diff)
tweak defines
-rw-r--r--main.ino5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.ino b/main.ino
index 6a1538a..41c61ee 100644
--- a/main.ino
+++ b/main.ino
@@ -34,7 +34,7 @@ EasyButton button_move(BUTTON_PIN_MOVE);
EasyButton button_select(BUTTON_PIN_SELECT);
#if defined(HAS_DISPLAY)
-#define ENABLE_GxEPD2_GFX 1
+#define ENABLE_GxEPD2_GFX 0
#include <GxEPD2_BW.h>
#include <Fonts/FreeMonoBold9pt7b.h>
@@ -42,6 +42,9 @@ EasyButton button_select(BUTTON_PIN_SELECT);
// source: https://github.com/ZinggJM/GxEPD2/blob/master/examples/GxEPD2_Example/GxEPD2_display_selection.h#L192
GxEPD2_BW<GxEPD2_290, GxEPD2_290::HEIGHT> displayEPaper(GxEPD2_290(EPD_CS, EPD_DC, EPD_RSET, EPD_BUSY));
+// FIXME: really disable GLCD, since it cannot build on ESP32
+// as dirty workaround, edit file `libraries/GEM/src/config.h`
+#define GEM_DISABLE_GLCD 1
#include <GEM_adafruit_gfx.h>
// Create variables that will be editable through the menu and assign them initial values