From dad6aa2ea4e955dc4aa122496d8b21e6cf5148d2 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Wed, 20 Jan 2021 23:20:37 +0900 Subject: [PATCH] added support for WeMos board. --- platformio.ini | 12 ++++++++++++ src/main.cpp | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index e02c760..7fdce6b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -25,6 +25,7 @@ default_envs = nodemcuv2 [env] framework = arduino upload_speed = 921600 +; 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600 upload_port = /dev/ttyUSB0 /dev/tty.SLAB_USBtoUART @@ -42,6 +43,17 @@ lib_deps = ESP8266WiFi Servo(esp8266) +[env:d1_mini_pro] +platform = espressif8266 +board = d1_mini_pro +upload_speed = 460800 +; 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600 +lib_deps = + ${env.lib_deps} + ESP8266WiFi + Servo(esp8266) + ESPAsyncTCP + [env:huzzah] platform = espressif8266 board = huzzah diff --git a/src/main.cpp b/src/main.cpp index 94bd5d2..5240368 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -71,11 +71,11 @@ #define SET_ROOT #define SET_CONTAINSROOT // (2-1) osc client (non-ROOT) -#elif 1 +#elif 0 // #define SET_ROOT #define SET_CONTAINSROOT // (3) sampler client -#elif 0 +#elif 1 #define DISABLE_AP #define DISABLE_I2C_REQ // @@ -101,6 +101,8 @@ // #if defined(ARDUINO_ESP8266_NODEMCU) // nodemcuv2 #define LED_PIN 2 +#elif defined(ARDUINO_ESP8266_WEMOS_D1MINIPRO) // d1_mini +#define LED_PIN 2 #elif defined(ARDUINO_ESP8266_ESP12) // huzzah #define LED_PIN 2 #elif defined(ARDUINO_FEATHER_ESP32) // featheresp32