Browse Source

hw: add support for Itead Sonoff POW R3 (#2506)

Added support for Itead Sonoff POW R3 (https://itead.cc/product/sonoff-powr3/)

This device is essentially the same as the POW R2, except:
- the relay is a normally closed type,
- the current and power ratings of the device are higher.
pull/2516/head
Ken Nixon 2 years ago
committed by GitHub
parent
commit
99c3d24bbd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 0 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +28
    -0
      code/espurna/config/hardware.h
  3. +4
    -0
      code/platformio.ini
  4. +3
    -0
      code/platformio_ota.ini

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

@ -97,6 +97,7 @@
//#define ITEAD_SONOFF_MINI
//#define ITEAD_SONOFF_POW
//#define ITEAD_SONOFF_POW_R2
//#define ITEAD_SONOFF_POW_R3
//#define ITEAD_SONOFF_RF
//#define ITEAD_SONOFF_RFBRIDGE
//#define ITEAD_SONOFF_S31


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

@ -570,6 +570,34 @@
#endif
#define CSE7766_RX_PIN 3
#elif defined(ITEAD_SONOFF_POW_R3)
// Info
#define MANUFACTURER "ITEAD"
#define DEVICE "SONOFF_POW_R3"
// Buttons
#define BUTTON1_PIN 0
#define BUTTON1_CONFIG BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1
// Relays
#define RELAY1_PIN 12
#define RELAY1_TYPE RELAY_TYPE_INVERSE
// LEDs
#define LED1_PIN 13
#define LED1_PIN_INVERSE 1
// Disable UART noise
#define DEBUG_SERIAL_SUPPORT 0
// CSE7766
#ifndef CSE7766_SUPPORT
#define CSE7766_SUPPORT 1
#endif
#define CSE7766_RX_PIN 3
#elif defined(ITEAD_SONOFF_DUAL)
// Info


+ 4
- 0
code/platformio.ini View File

@ -425,6 +425,10 @@ build_src_flags = -DITEAD_SONOFF_POW
extends = env:esp8266-1m-base
build_src_flags = -DITEAD_SONOFF_POW_R2 -DDISABLE_POSTMORTEM_STACKDUMP
[env:itead-sonoff-pow-r3]
extends = env:esp8266-1m-base
build_src_flags = -DITEAD_SONOFF_POW_R3 -DDISABLE_POSTMORTEM_STACKDUMP
[env:itead-sonoff-dual]
extends = env:esp8266-1m-base
build_src_flags = -DITEAD_SONOFF_DUAL -DDISABLE_POSTMORTEM_STACKDUMP


+ 3
- 0
code/platformio_ota.ini View File

@ -39,6 +39,9 @@ extends = env:itead-sonoff-pow
[env:itead-sonoff-pow-r2-ota]
extends = env:itead-sonoff-pow-r2
[env:itead-sonoff-pow-r3-ota]
extends = env:itead-sonoff-pow-r3
[env:itead-sonoff-dual-ota]
extends = env:itead-sonoff-dual


Loading…
Cancel
Save