Code Style Changes
* Add License Identifier * Move non public required includes to cpp * Add curly brackets
This commit is contained in:
parent
7074dd5757
commit
e572e711a4
@ -1,12 +1,7 @@
|
||||
#ifndef Display_Graphic_H
|
||||
#define Display_Graphic_H
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Hoymiles.h>
|
||||
#include <NetworkSettings.h>
|
||||
#include <U8g2lib.h>
|
||||
#include <map>
|
||||
#include <time.h>
|
||||
|
||||
class DisplayGraphicClass {
|
||||
public:
|
||||
@ -37,5 +32,3 @@ private:
|
||||
};
|
||||
|
||||
extern DisplayGraphicClass Display;
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include "Display_Graphic.h"
|
||||
#include <Hoymiles.h>
|
||||
#include <NetworkSettings.h>
|
||||
#include <map>
|
||||
#include <time.h>
|
||||
|
||||
static uint8_t bmp_logo[] PROGMEM = {
|
||||
B00000000, B00000000, // ................
|
||||
@ -138,9 +143,10 @@ void DisplayGraphicClass::loop()
|
||||
uint8_t ex = (_mExtra % 7);
|
||||
if (isprod > 0) {
|
||||
_display->drawXBMP(5 + ex, 1, 8, 17, bmp_arrow);
|
||||
if (dispLogo)
|
||||
if (dispLogo) {
|
||||
_display->drawXBMP(_display->getWidth() - 24 + ex, 2, 16, 16, bmp_logo);
|
||||
}
|
||||
}
|
||||
//<=======================
|
||||
|
||||
//=====> Actual Production ==========
|
||||
|
||||
Loading…
Reference in New Issue
Block a user