Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardware: Add support for Nedis WIFIP310FWT #2275

Merged
merged 1 commit into from
Jun 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions code/espurna/config/arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 33 additions & 3 deletions code/espurna/config/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -4364,7 +4364,7 @@

// Info
#define MANUFACTURER "ETEKCITY"
#define DEVICE "ESW01-USA"
#define DEVICE "ESW01_USA"

// Buttons
#define BUTTON1_PIN 14
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions code/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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