Browse Source

Added new development board: Wemos D1 mini with Relay Shield

fastled
Xose Pérez 8 years ago
parent
commit
13954a7f33
3 changed files with 31 additions and 2 deletions
  1. +9
    -1
      code/espurna/config/hardware.h
  2. BIN
      code/espurna/data/index.html.gz
  3. +22
    -1
      code/platformio.ini

+ 9
- 1
code/espurna/config/hardware.h View File

@ -26,7 +26,7 @@
//#define ENABLE_NOFUSS 1 //#define ENABLE_NOFUSS 1
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// NODEMCUv2 development board
// Development boards
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#if defined(NODEMCUV2) #if defined(NODEMCUV2)
@ -38,6 +38,14 @@
#define LED1_PIN 2 #define LED1_PIN 2
#define LED1_PIN_INVERSE 1 #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 // Itead Studio boards
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------


BIN
code/espurna/data/index.html.gz View File


+ 22
- 1
code/platformio.ini View File

@ -1,5 +1,5 @@
[platformio] [platformio]
env_default = node-debug
env_default = d1-debug
src_dir = espurna src_dir = espurna
data_dir = espurna/data 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] [env:node-debug]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino


Loading…
Cancel
Save