* luminance of display can be changed during runtime #1106
@ -10,6 +10,8 @@
* 2.42" display (SSD1309) integration PR #1139
* update user manual PR #1121
* add / rename alarm codes PR #1118
* revert default pin ESP32 for NRF23-CE #1132
## 0.7.45 - 2023-08-29
* change ePaper text to symbols PR #1131
@ -68,7 +68,7 @@
#define DEF_NRF_CS_PIN 5
#endif
#ifndef DEF_NRF_CE_PIN
#define DEF_NRF_CE_PIN 17
#define DEF_NRF_CE_PIN 4
#ifndef DEF_NRF_IRQ_PIN
#define DEF_NRF_IRQ_PIN 16
@ -59,7 +59,7 @@ class Display {
void tickerSecond() {
if (mMono != NULL)
mMono->loop();
mMono->loop(mCfg->contrast);
if (mNewPayload || (((++mLoopCnt) % 30) == 0)) {
mNewPayload = false;
@ -46,11 +46,16 @@ class DisplayMono128X32 : public DisplayMono {
mLuminance = lum;
}
void loop(void) {
void loop(uint8_t lum) {
if (mEnPowerSafe) {
if (mTimeout != 0)
mTimeout--;
if(mLuminance != lum) {
mDisplay->setContrast(mLuminance);
void disp(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod) {
@ -54,11 +54,16 @@ class DisplayMono128X64 : public DisplayMono {
@ -47,11 +47,16 @@ class DisplayMono64X48 : public DisplayMono {
@ -47,11 +47,16 @@ class DisplayMono84X48 : public DisplayMono {