mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 00:46:31 +02:00
36 lines
1010 B
C
36 lines
1010 B
C
![]() |
#ifndef _AG_OLED_DISPLAY_H_
|
||
|
#define _AG_OLED_DISPLAY_H_
|
||
|
|
||
|
#include "AgConfigure.h"
|
||
|
#include "AirGradient.h"
|
||
|
#include "Main/PrintLog.h"
|
||
|
#include <Arduino.h>
|
||
|
|
||
|
class AgOledDisplay: public PrintLog
|
||
|
{
|
||
|
private:
|
||
|
AgConfigure &config;
|
||
|
AirGradient &ag;
|
||
|
bool isBegin = false;
|
||
|
void* u8g2 = NULL;
|
||
|
public:
|
||
|
AgOledDisplay(AirGradient& ag ,AgConfigure &config, Stream &log);
|
||
|
~AgOledDisplay();
|
||
|
|
||
|
bool begin(void);
|
||
|
void end(void);
|
||
|
void setStatus(String& status);
|
||
|
void setStatus(const char* status);
|
||
|
void setText(String &line1, String &line2, String &line3);
|
||
|
void setText(const char* line1, const char* line2, const char* line3);
|
||
|
void setText(const char* text);
|
||
|
void setText(String &text);
|
||
|
void setText(String &line1, String& line2, String& line3, String& line4);
|
||
|
void setText(const char* line1, const char* line2, const char* line3, const char* line4);
|
||
|
void showDashBoard(void);
|
||
|
void showDashBoard(String& status);
|
||
|
void showDashboard(const char* status);
|
||
|
};
|
||
|
|
||
|
#endif /** _AG_OLED_DISPLAY_H_ */
|