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
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
#define Display_Graphic_H
|
#pragma once
|
||||||
|
|
||||||
#include <Arduino.h>
|
|
||||||
#include <Hoymiles.h>
|
|
||||||
#include <NetworkSettings.h>
|
|
||||||
#include <U8g2lib.h>
|
#include <U8g2lib.h>
|
||||||
#include <map>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
class DisplayGraphicClass {
|
class DisplayGraphicClass {
|
||||||
public:
|
public:
|
||||||
@ -37,5 +32,3 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern DisplayGraphicClass Display;
|
extern DisplayGraphicClass Display;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
@ -1,4 +1,9 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
#include "Display_Graphic.h"
|
#include "Display_Graphic.h"
|
||||||
|
#include <Hoymiles.h>
|
||||||
|
#include <NetworkSettings.h>
|
||||||
|
#include <map>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
static uint8_t bmp_logo[] PROGMEM = {
|
static uint8_t bmp_logo[] PROGMEM = {
|
||||||
B00000000, B00000000, // ................
|
B00000000, B00000000, // ................
|
||||||
@ -138,8 +143,9 @@ void DisplayGraphicClass::loop()
|
|||||||
uint8_t ex = (_mExtra % 7);
|
uint8_t ex = (_mExtra % 7);
|
||||||
if (isprod > 0) {
|
if (isprod > 0) {
|
||||||
_display->drawXBMP(5 + ex, 1, 8, 17, bmp_arrow);
|
_display->drawXBMP(5 + ex, 1, 8, 17, bmp_arrow);
|
||||||
if (dispLogo)
|
if (dispLogo) {
|
||||||
_display->drawXBMP(_display->getWidth() - 24 + ex, 2, 16, 16, bmp_logo);
|
_display->drawXBMP(_display->getWidth() - 24 + ex, 2, 16, 16, bmp_logo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//<=======================
|
//<=======================
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user