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

@ -1,7 +1,9 @@
#include <ESPMegaPRO_OOP.hpp>
#include <InternalDisplay.hpp>
#include <ETH.h>
ESPMegaPRO espmega = ESPMegaPRO();
InternalDisplay display = InternalDisplay(&Serial);
void input_change_callback(uint8_t pin, uint8_t value) {
Serial.print("Input change callback: ");
@ -50,6 +52,8 @@ void setup() {
Serial.println("Initialization Routine Complete");
((DigitalInputIoT*)espmega.iot.getComponent(0)) -> registerChangeCallback(input_change_callback);
}
void loop() {