mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 08:56:34 +02:00
[temporary commit]
This commit is contained in:
35
src/AgOledDisplay.h
Normal file
35
src/AgOledDisplay.h
Normal file
@ -0,0 +1,35 @@
|
||||
#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_ */
|
Reference in New Issue
Block a user