From 13954a7f33b1ff795d5b780eb424266f6b2f785e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 5 Jan 2017 00:28:08 +0100 Subject: [PATCH] Added new development board: Wemos D1 mini with Relay Shield --- code/espurna/config/hardware.h | 10 +++++++++- code/espurna/data/index.html.gz | Bin 3250 -> 3250 bytes code/platformio.ini | 23 ++++++++++++++++++++++- 3 files changed, 31 insertions(+), 2 deletions(-) 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 297242610e5c20c01252855f7fb81736566ccd6d..2e18235ddda36ee699d17020c779c5483490db45 100644 GIT binary patch delta 3247 zcmV;g3{dm38L}CFABzY80000000YfidvDt~68|bZ6}OuLv7I>0qS)F7f+XEFws~Ca zqSyWBKufg6jYMiiDvo=&FLr<4C%YMvk|p_(_|-cEvGpK_GsEG`Z-#W|FIRV$!>{+( zB-C-#>$p!wgI-5-9kJf^;66(QB_~bz>$L2{PRukVen?Y)#dO!p^tkcf>vbY79!big zuBSqoYCqG2`%-vB&l1-4cuXg(_1v(}!jz4>-k3h&Z4*8`M^?}n8b5J1O@N3;;I(D~ zhMDp}huwfd57sa@$6RpDY1B|Yjac`z%7dOoOofc;d@%E*=_>{8T2{!B3}(G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BoM1 zqR%lTt&lxs8X@KCL7=TNC7F$xFEV0B0&UmUDq*x;LG1j{&nl=jKMb@0w{SWgAVt1_ zb%U-h9Zd&^eh}md{O`t7_J!9gIOyMO?|VxGSEOF2b-0sjv&DbKD}|GsiCa9DScrA| zWw^UsNOF~6bcQP!uJ{s{6rlZ!@OkWa9!LfXm zhao^i=nBzBQ>M7W$}=%;5fMK`v{VL}Zw;6|C1AfSaA~25X|`5vi60ftANxMaNE^_P zLtu9yVev!u<$8Y`S8VnLVy5T0C$>ydnZOfQd}@OGMv^m^EkMI#{D_KV!grDu<#Lh< zEi*qfCFUQoq(J^FryaL_e11XhuLs2L{1WqU6B8sQilvR@>L5#y&bzX4zOApi<2?c& z2wIpRqWjGhhO^~n74ZkOxKS33T%pv(GE;FdE}QEkBC&rSG35%0VS6S02e5)=_5w7_ zq`#<4v1I?emfYi!j0jIe=2GkY!OM-rDDszFO>;9*3J;IDQ%+65@&M~r5IsoEYx}nrI&TRGrxG=3{PDF+JCL^qSE*ZT;o zbc(sfmdXJd{}0N+aA&rEazCo(bH1@&Vyfl`E6IN~+-;{DLuV81R6R@k?5vsp?@x1I zR7N96l`5kd18cS47A4~?v>4!7dNk5)O$!NZuf2Co^S4)vLm&mPnQ}pH@XU&>MS{Q> zX)y?|HOZa%T4=jr7zqF#*P=*CR4X{1Q;636(qPFcyw`vO3%hLQFiYh(O=hfraI>*y ze!YKGKd8I?-d%Zw{LHTXS;=wzXhJ<%`9Z>$#qMAJ{lzlR5mB`jyfom4Kmykfo=WMQ zxw8tg*@cG{3A5lTtFNw~^_&1UGYg6M40rt9dU9z>zNaB1R{DGs-|Aax_S62tPWdTM hG*PJ!5YJpU|1e3Ty}{q(;ZG0$3(#CUJdgu80060GGPD2y 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