Browse Source

- Added board definition without relays and buttons.

- Added new environment 'nodemcu-geiger' to platformio.ini.
pull/911/head
Trickx 6 years ago
parent
commit
15770f4706
3 changed files with 18 additions and 0 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +6
    -0
      code/espurna/config/hardware.h
  3. +11
    -0
      code/platformio.ini

+ 1
- 0
code/espurna/config/arduino.h View File

@ -117,6 +117,7 @@
//#define THINGSPEAK_SUPPORT 0
//#define UART_MQTT_SUPPORT 1
//#define WEB_SUPPORT 0
//#define GEIGER_SUPPORT 1
//--------------------------------------------------------------------------------
// Sensors (values below are non-default values)


+ 6
- 0
code/espurna/config/hardware.h View File

@ -70,6 +70,12 @@
#define LED1_PIN 2
#define LED1_PIN_INVERSE 1
#elif defined(NODEMCU_BASIC)
// Info
// Generic NodeMCU Board without any buttons or relays connected.
#define MANUFACTURER "NODEMCU"
#define DEVICE "BASIC"
#elif defined(WEMOS_D1_MINI_RELAYSHIELD)
// Info


+ 11
- 0
code/platformio.ini View File

@ -2224,3 +2224,14 @@ upload_speed = 115200
upload_port = "${env.ESPURNA_IP}"
upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266
extra_scripts = ${common.extra_scripts}
[env:nodemcu-geiger]
platform = ${common.platform}
framework = arduino
board = nodemcu
lib_deps = ${common.lib_deps}
lib_ignore = ${common.lib_ignore}
build_flags = ${common.build_flags} -DNODEMCU_BASIC -DNOWSAUTH -DGEIGER_SUPPORT=1 -DEVENTS_SUPPORT=0 -DINFLUXDB_SUPPORT=1 -DALEXA_SUPPORT=0 -DALEXA_ENABLED=0
upload_speed = 460800
monitor_speed = 115200
extra_scripts = ${common.extra_scripts}

Loading…
Cancel
Save