prepare env
This commit is contained in:
parent
7dbf37007a
commit
a7e4832b7a
|
@ -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"'
|
17
src/main.cpp
17
src/main.cpp
|
@ -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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -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);
|
Loading…
Reference in New Issue