Browse Source

Support for ESPurna H v0.8

fastled
Xose Pérez 6 years ago
parent
commit
cd23e1b97e
4 changed files with 9 additions and 9 deletions
  1. +1
    -1
      code/espurna/config/arduino.h
  2. +3
    -3
      code/espurna/config/hardware.h
  3. +1
    -1
      code/espurna/hardware.ino
  4. +4
    -4
      code/platformio.ini

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

@ -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


+ 3
- 3
code/espurna/config/hardware.h View File

@ -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


+ 1
- 1
code/espurna/hardware.ino View File

@ -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);


+ 4
- 4
code/platformio.ini View File

@ -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


Loading…
Cancel
Save