diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 46760057..15af90a6 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -26,7 +26,7 @@ //#define ENABLE_NOFUSS 1 // ----------------------------------------------------------------------------- -// NODEMCUv2 development board +// Development boards // ----------------------------------------------------------------------------- #if defined(NODEMCUV2) @@ -38,6 +38,14 @@ #define LED1_PIN 2 #define LED1_PIN_INVERSE 1 +#elif defined(D1_RELAYSHIELD) + + #define MANUFACTURER "WEMOS" + #define DEVICE "D1_MINI" + #define RELAY1_PIN 5 + #define LED1_PIN 2 + #define LED1_PIN_INVERSE 1 + // ----------------------------------------------------------------------------- // Itead Studio boards // ----------------------------------------------------------------------------- diff --git a/code/espurna/data/index.html.gz b/code/espurna/data/index.html.gz index 29724261..2e18235d 100644 Binary files a/code/espurna/data/index.html.gz and b/code/espurna/data/index.html.gz differ diff --git a/code/platformio.ini b/code/platformio.ini index 6d755c66..3f36291a 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -1,5 +1,5 @@ [platformio] -env_default = node-debug +env_default = d1-debug src_dir = espurna data_dir = espurna/data @@ -28,6 +28,27 @@ lib_ignore = FauxmoESP, ESPAsyncUDP # ------------------------------------------------------------------------------ +[env:d1-debug] +platform = espressif8266 +framework = arduino +board = d1_mini +lib_deps = ${common.lib_deps} +lib_ignore = ${common.lib_ignore} +extra_script = pio_hooks.py +build_flags = -g -DD1_RELAYSHIELD -DDEBUG_PORT=Serial -DNOWSAUTH + +[env:d1-debug-ota] +platform = espressif8266 +framework = arduino +board = d1_mini +lib_deps = ${common.lib_deps} +lib_ignore = ${common.lib_ignore} +extra_script = pio_hooks.py +build_flags = -g -DD1_RELAYSHIELD -DDEBUG_PORT=Serial -DNOWSAUTH +upload_speed = 115200 +upload_port = "192.168.4.1" +upload_flags = --auth=fibonacci --port 8266 + [env:node-debug] platform = espressif8266 framework = arduino