From cd23e1b97ee2deb7844b73f000a2e5313ac8b9ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sun, 29 Oct 2017 17:35:50 +0100 Subject: [PATCH] Support for ESPurna H v0.8 --- code/espurna/config/arduino.h | 2 +- code/espurna/config/hardware.h | 6 +++--- code/espurna/hardware.ino | 2 +- code/platformio.ini | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index 0a0ff3a3..4855d49c 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -10,7 +10,7 @@ //#define NODEMCU_LOLIN //#define WEMOS_D1_MINI_RELAYSHIELD //#define TINKERMAN_ESPURNA_H06 -//#define TINKERMAN_ESPURNA_H07 +//#define TINKERMAN_ESPURNA_H08 //#define ITEAD_SONOFF_BASIC //#define ITEAD_SONOFF_RF //#define ITEAD_SONOFF_TH diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 6ba1895d..5892a1b0 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -109,11 +109,11 @@ #define HLW8012_CF1_PIN 13 #define HLW8012_CF_PIN 14 -#elif defined(TINKERMAN_ESPURNA_H07) +#elif defined(TINKERMAN_ESPURNA_H08) // Info #define MANUFACTURER "TINKERMAN" - #define DEVICE "ESPURNA_H07" + #define DEVICE "ESPURNA_H08" // Buttons #define BUTTON1_PIN 4 @@ -142,7 +142,7 @@ // LEDs #define LED1_PIN 2 - #define LED1_PIN_INVERSE 0 + #define LED1_PIN_INVERSE 1 // HLW8012 #define POWER_PROVIDER POWER_PROVIDER_HLW8012 diff --git a/code/espurna/hardware.ino b/code/espurna/hardware.ino index 0f4e9450..6b21090f 100644 --- a/code/espurna/hardware.ino +++ b/code/espurna/hardware.ino @@ -461,7 +461,7 @@ void hwUpwardsCompatibility() { setSetting("board", 38); - #elif defined(TINKERMAN_ESPURNA_H07) + #elif defined(TINKERMAN_ESPURNA_H08) setSetting("board", 39); setSetting("ledGPIO", 1, 2); diff --git a/code/platformio.ini b/code/platformio.ini index 362798bb..e257811d 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -128,23 +128,23 @@ upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 -[env:tinkerman-espurna-h07] +[env:tinkerman-espurna-h08] platform = ${common.platform} framework = arduino board = esp12e lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} -build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H07 +build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H08 upload_speed = 460800 monitor_baud = 115200 -[env:tinkerman-espurna-h07-ota] +[env:tinkerman-espurna-h08-ota] platform = ${common.platform} framework = arduino board = esp12e lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} -build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H07 +build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H08 upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266