mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-03 16:38:20 +02:00
parent
a1a9a1f9cb
commit
4b34aadc16
7 changed files with 28 additions and 6 deletions
|
@ -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
|
||||
* luminance of display can be changed during runtime #1106
|
||||
|
||||
## 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
|
||||
#endif
|
||||
#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) {
|
||||
mLuminance = lum;
|
||||
mDisplay->setContrast(mLuminance);
|
||||
}
|
||||
}
|
||||
|
||||
void disp(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod) {
|
||||
|
|
|
@ -54,11 +54,16 @@ class DisplayMono128X64 : public DisplayMono {
|
|||
mLuminance = lum;
|
||||
}
|
||||
|
||||
void loop(void) {
|
||||
void loop(uint8_t lum) {
|
||||
if (mEnPowerSafe) {
|
||||
if (mTimeout != 0)
|
||||
mTimeout--;
|
||||
}
|
||||
|
||||
if(mLuminance != lum) {
|
||||
mLuminance = lum;
|
||||
mDisplay->setContrast(mLuminance);
|
||||
}
|
||||
}
|
||||
|
||||
void disp(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod) {
|
||||
|
|
|
@ -47,11 +47,16 @@ class DisplayMono64X48 : public DisplayMono {
|
|||
mLuminance = lum;
|
||||
}
|
||||
|
||||
void loop(void) {
|
||||
void loop(uint8_t lum) {
|
||||
if (mEnPowerSafe) {
|
||||
if (mTimeout != 0)
|
||||
mTimeout--;
|
||||
}
|
||||
|
||||
if(mLuminance != lum) {
|
||||
mLuminance = lum;
|
||||
mDisplay->setContrast(mLuminance);
|
||||
}
|
||||
}
|
||||
|
||||
void disp(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod) {
|
||||
|
|
|
@ -47,11 +47,16 @@ class DisplayMono84X48 : public DisplayMono {
|
|||
mLuminance = lum;
|
||||
}
|
||||
|
||||
void loop(void) {
|
||||
void loop(uint8_t lum) {
|
||||
if (mEnPowerSafe) {
|
||||
if (mTimeout != 0)
|
||||
mTimeout--;
|
||||
}
|
||||
|
||||
if(mLuminance != lum) {
|
||||
mLuminance = lum;
|
||||
mDisplay->setContrast(mLuminance);
|
||||
}
|
||||
}
|
||||
|
||||
void disp(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue