prepare env

This commit is contained in:
Siwat Sirichai 2024-10-08 23:24:02 +07:00
parent 7dbf37007a
commit a7e4832b7a
3 changed files with 11 additions and 15 deletions

View File

@ -14,3 +14,4 @@ board = wt32-eth01
framework = arduino framework = arduino
lib_deps = siwats/ESPMegaPROR3@^2.9.5 lib_deps = siwats/ESPMegaPROR3@^2.9.5
monitor_speed = 115200 monitor_speed = 115200
build_flags = -DCORE_DEBUG_LEVEL=0 -DSW_VERSION='"walkway-1.0.0"' -DBOARD_MODEL='"ESPMegaPRO R3.3c"'

View File

@ -4,18 +4,6 @@ ESPMegaPRO espmega = ESPMegaPRO();
void setup() void setup()
{ {
// Initialize both displayports
INTERNAL_DISPLAY_UART.begin(INTERNAL_DISPLAY_BAUDRATE);
ESP_LOGI("OS", "Starting Initialization");
INTERNAL_DISPLAY_UART.write(0xFF);
INTERNAL_DISPLAY_UART.write(0xFF);
INTERNAL_DISPLAY_UART.write(0xFF);
INTERNAL_DISPLAY_UART.print("rest");
INTERNAL_DISPLAY_UART.write(0xFF);
INTERNAL_DISPLAY_UART.write(0xFF);
INTERNAL_DISPLAY_UART.write(0xFF);
// Wait for the display to reset
vTaskDelay(1000 / portTICK_PERIOD_MS);
// Initialize the ESPMegaPRO // Initialize the ESPMegaPRO
ESP_LOGV("OS", "Initializing ESPMegaPRO"); ESP_LOGV("OS", "Initializing ESPMegaPRO");
espmega.begin(); espmega.begin();
@ -54,3 +42,8 @@ void loop()
{ {
espmega.loop(); espmega.loop();
} }
void input_callback(uint8_t pin, uint8_t state)
{
}

View File

@ -2,5 +2,7 @@
#include <ESPMegaProOS.hpp> #include <ESPMegaProOS.hpp>
#include <ETH.h> #include <ETH.h>
#define INTERNAL_DISPLAY_UART Serial void setup();
#define INTERNAL_DISPLAY_BAUDRATE 115200 void loop();
void input_callback(uint8_t pin, uint8_t state);