1.2.41 t-echo final build

pull/816/head
Kevin Hester 2021-06-27 12:28:57 -07:00
rodzic 659286f738
commit fc9fc1ee6f
3 zmienionych plików z 10 dodań i 10 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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<TECHO_DISPLAY_MODEL, TECHO_DISPLAY_MODEL::HEIGHT>(*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;
}

Wyświetl plik

@ -1,4 +1,4 @@
[VERSION]
major = 1
minor = 2
build = 39
build = 41