commit
3045088588
@ -46,6 +46,8 @@ void button_init(void) {
|
||||
button.setPressTicks(1000);
|
||||
button.attachClick(singleClick);
|
||||
button.attachLongPressStart(longPressStart);
|
||||
|
||||
attachInterrupt(digitalPinToInterrupt(HAS_BUTTON), readButton, CHANGE);
|
||||
};
|
||||
|
||||
#endif
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user