mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
parent
a1a9a1f9cb
commit
4b34aadc16
7 changed files with 28 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue