Browse Source

hardware: Add support for Nedis WIFIP310FWT (#2275)

mcspr-patch-1
Max Prokhorov 4 years ago
committed by GitHub
parent
commit
ba9b4a4503
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 3 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +33
    -3
      code/espurna/config/hardware.h
  3. +4
    -0
      code/platformio.ini

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

@ -131,6 +131,7 @@
//#define MAXCIO_WUK007S
//#define MAXCIO_WUS002S
//#define MUVIT_IO_MIOBULB001
//#define NEDIS_WIFIP310FWT
//#define NEO_COOLCAM_NAS_WR01W
//#define NEXETE_A19
//#define NODEMCU_BASIC


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

@ -1255,7 +1255,7 @@
// Info
#define MANUFACTURER "LYASI"
#define DEVICE "RGB-LED"
#define DEVICE "RGB_LED"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_MY92XX
#define DUMMY_RELAY_COUNT 1
@ -1497,7 +1497,7 @@
#elif defined(HUGOAI_AWP02L_N)
#define MANUFACTURER "HUGOAI"
#define DEVICE "AWP02L-N"
#define DEVICE "AWP02L_N"
// Buttons
#define BUTTON1_PIN 13
@ -4364,7 +4364,7 @@
// Info
#define MANUFACTURER "ETEKCITY"
#define DEVICE "ESW01-USA"
#define DEVICE "ESW01_USA"
// Buttons
#define BUTTON1_PIN 14
@ -4689,6 +4689,36 @@
#define RELAY3_TYPE RELAY_TYPE_NORMAL
#define RELAY4_TYPE RELAY_TYPE_NORMAL
// -----------------------------------------------------------------------------
// NEDIS WIFIP310FWT Wi-Fi Smart Extension Socket
// 3x Schuko Type F, 4x USB, 16 A
// https://nedis.com/en-us/product/smart-living/smart-home/energy/550672299/wi-fi-smart-extension-socket-3x-schuko-type-f-4x-usb-16-a
// -----------------------------------------------------------------------------
#elif defined(NEDIS_WIFIP310FWT)
// Info
#define MANUFACTURER "NEDIS"
#define DEVICE "WIFIP310FWT"
// Based on the reporter, this product uses GPIO1 and 3 for the button
// and onboard LED, so hardware serial should be disabled...
#define DEBUG_SERIAL_SUPPORT 0
// Buttons
#define BUTTON1_PIN 3
#define BUTTON1_CONFIG BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
// Relays
#define RELAY1_PIN 5
#define RELAY2_PIN 4
#define RELAY3_PIN 13
#define RELAY4_PIN 14
// LEDs
#define LED1_PIN 1
#define LED1_PIN_INVERSE 1
// -----------------------------------------------------------------------------
#else


+ 4
- 0
code/platformio.ini View File

@ -1011,3 +1011,7 @@ src_build_flags = -DAOYCOCR_X5P
[env:hugoai-awp02l-n]
extends = env:esp8266-1m-base
src_build_flags = -DHUGOAI_AWP02L_N
[env:nedis-wifip310fwt]
extends = env:esp8266-1m-base
src_build_flags = -DNEDIS_WIFIP310FWT

Loading…
Cancel
Save