From f9757a02acd78f7b12012afb89044e848a36f64f Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sun, 6 Nov 2022 18:02:12 +0100 Subject: [PATCH 1/2] (re-)add button interrupt --- src/button.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/button.cpp b/src/button.cpp index b929222b..e332d364 100644 --- a/src/button.cpp +++ b/src/button.cpp @@ -46,6 +46,8 @@ void button_init(void) { button.setPressTicks(1000); button.attachClick(singleClick); button.attachLongPressStart(longPressStart); + + attachInterrupt(digitalPinToInterrupt(HAS_BUTTON), readButton, CHANGE); }; #endif \ No newline at end of file From 367882ab930a301565d9a1cc64299f612411bb2a Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sun, 6 Nov 2022 18:02:39 +0100 Subject: [PATCH 2/2] fix BME680 display truncation --- src/display.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/display.cpp b/src/display.cpp index f50402ef..3a4edc92 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -344,11 +344,11 @@ void dp_refresh(bool nextPage) { #if (HAS_BME) dp_setFont(MY_FONT_STRETCHED); dp->setCursor(0, 0); - dp->printf("TMP: %-6.1f\r\n", bme_status.temperature); - dp->printf("HUM: %-6.1f\r\n", bme_status.humidity); - dp->printf("PRE: %-6.1f\r\n", bme_status.pressure); + dp->printf("TMP %-6.1f\r\n", bme_status.temperature); + dp->printf("HUM %-6.1f\r\n", bme_status.humidity); + dp->printf("PRS %-6.1f\r\n", bme_status.pressure); #ifdef HAS_BME680 - dp->printf("IAQ: %-6.0f", bme_status.iaq); + dp->printf("IAQ %-6.0f", bme_status.iaq); #endif dp_dump(); break;