prepare env
This commit is contained in:
parent
7dbf37007a
commit
a7e4832b7a
|
@ -13,4 +13,5 @@ platform = espressif32
|
|||
board = wt32-eth01
|
||||
framework = arduino
|
||||
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"'
|
17
src/main.cpp
17
src/main.cpp
|
@ -4,18 +4,6 @@ ESPMegaPRO espmega = ESPMegaPRO();
|
|||
|
||||
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
|
||||
ESP_LOGV("OS", "Initializing ESPMegaPRO");
|
||||
espmega.begin();
|
||||
|
@ -54,3 +42,8 @@ void loop()
|
|||
{
|
||||
espmega.loop();
|
||||
}
|
||||
|
||||
void input_callback(uint8_t pin, uint8_t state)
|
||||
{
|
||||
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
#include <ESPMegaProOS.hpp>
|
||||
#include <ETH.h>
|
||||
|
||||
#define INTERNAL_DISPLAY_UART Serial
|
||||
#define INTERNAL_DISPLAY_BAUDRATE 115200
|
||||
void setup();
|
||||
void loop();
|
||||
|
||||
void input_callback(uint8_t pin, uint8_t state);
|
Loading…
Reference in New Issue