implement internal display

This commit is contained in:
Siwat Sirichai 2023-12-29 21:41:19 +07:00
parent efc3450995
commit 2dee25276c
4 changed files with 19 additions and 1 deletions

View file

@ -10,7 +10,6 @@
#include <DS1307RTC.h>
#include <time.h>
struct rtctime_t {
uint8_t hours;
uint8_t minutes;

View file

@ -99,3 +99,17 @@ void InternalDisplay::setPWMAdjustmentPin(uint8_t pin) {
void InternalDisplay::setPWMAdjustmentButton(bool state) {
// TODO: implementation
}
void InternalDisplay::setOutputStateColor(uint8_t pin, bool state) {
// TODO: implementation
}
void InternalDisplay::setInputMarker(uint8_t pin, bool state) {
// TODO: implementation
}
InternalDisplay::InternalDisplay(HardwareSerial *displayAdapter) : ESPMegaDisplay(displayAdapter) {
this->currentPage = INTERNAL_DISPLAY_DASHBOARD_PAGE;
this->bindedInputCard = 0;
this->bindedOutputCard = 0;
}

View file

@ -8,6 +8,7 @@
class InternalDisplay : public ESPMegaDisplay {
public:
InternalDisplay(HardwareSerial *displayAdapter);
void begin(ESPMegaPRO *espmega);
void loop();
void bindInputCard(uint8_t card_id);