diff --git a/platformio.ini b/platformio.ini index 8fafeb6c..279e5e46 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,14 +9,14 @@ ; https://docs.platformio.org/page/projectconf.html [platformio] -;default_envs = tbeam +default_envs = tbeam ;default_envs = tbeam0.7 ;default_envs = heltec-v2.0 ;default_envs = tlora-v1 ;default_envs = tlora_v1_3 ;default_envs = tlora-v2 ;default_envs = lora-relay-v1 # nrf board -default_envs = t-echo +;default_envs = t-echo ;default_envs = nrf52840dk-geeksville ;default_envs = native # lora-relay-v1 # nrf52840dk-geeksville # linux # or if you'd like to change the default to something like lora-relay-v1 put that here ;default_envs = rak4631 diff --git a/src/graphics/EInkDisplay2.cpp b/src/graphics/EInkDisplay2.cpp index 7080e222..79e6c255 100644 --- a/src/graphics/EInkDisplay2.cpp +++ b/src/graphics/EInkDisplay2.cpp @@ -35,7 +35,7 @@ bool EInkDisplay::forceDisplay(uint32_t msecLimit) uint32_t now = millis(); uint32_t sinceLast = now - lastDrawMsec; - if (false && adafruitDisplay && (sinceLast > msecLimit || lastDrawMsec == 0)) { + if (adafruitDisplay && (sinceLast > msecLimit || lastDrawMsec == 0)) { lastDrawMsec = now; // FIXME - only draw bits have changed (use backbuf similar to the other displays) @@ -54,7 +54,7 @@ bool EInkDisplay::forceDisplay(uint32_t msecLimit) // ePaper.Reset(); // wake the screen from sleep adafruitDisplay->display(false); // FIXME, use partial update mode // Put screen to sleep to save power (possibly not necessary because we already did poweroff inside of display) - // adafruitDisplay->hibernate(); + adafruitDisplay->hibernate(); DEBUG_MSG("done\n"); return true; @@ -100,15 +100,15 @@ bool EInkDisplay::connect() auto lowLevel = new TECHO_DISPLAY_MODEL(PIN_EINK_CS, PIN_EINK_DC, PIN_EINK_RES, - PIN_EINK_BUSY); + PIN_EINK_BUSY, SPI1); adafruitDisplay = new GxEPD2_BW(*lowLevel); adafruitDisplay->init(); adafruitDisplay->setRotation(1); - adafruitDisplay->setFullWindow(); - adafruitDisplay->fillScreen(UNCOLORED); - adafruitDisplay->drawCircle(100, 100, 20, COLORED); - adafruitDisplay->display(false); + //adafruitDisplay->setFullWindow(); + //adafruitDisplay->fillScreen(UNCOLORED); + //adafruitDisplay->drawCircle(100, 100, 20, COLORED); + //adafruitDisplay->display(false); return true; } diff --git a/version.properties b/version.properties index de656e9a..96f8f7b2 100644 --- a/version.properties +++ b/version.properties @@ -1,4 +1,4 @@ [VERSION] major = 1 minor = 2 -build = 39 +build = 41