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

Including support for Arlec PC190HA/PB89HA #2286

Merged
merged 1 commit into from
Jun 27, 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
2 changes: 2 additions & 0 deletions code/espurna/config/arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
//#define ARILUX_AL_LC06
//#define ARILUX_AL_LC11
//#define ARILUX_E27
//#define ARLEC_PB89HA
//#define ARLEC_PC190HA
//#define ARNIEX_SWIFITCH
//#define AUTHOMETION_LYT8266
//#define AVATTO_NAS_WR01W
Expand Down
51 changes: 51 additions & 0 deletions code/espurna/config/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -4719,6 +4719,57 @@
#define LED1_PIN 1
#define LED1_PIN_INVERSE 1

// -----------------------------------------------------------------------------
// Arlec Smart PC190HA Plug
// https://templates.blakadder.com/arlec_PC190HA.html
// -----------------------------------------------------------------------------

#elif defined(ARLEC_PC190HA)

// Info
#define MANUFACTURER "ARLEC"
#define DEVICE "PC190HA"

// Buttons
#define BUTTON1_PIN 14
#define BUTTON1_CONFIG BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1

// Relays
#define RELAY1_PIN 12
#define RELAY1_TYPE RELAY_TYPE_NORMAL

// LEDs
#define LED1_PIN 4 // blue LED
#define LED1_PIN_INVERSE 1
#define LED2_PIN 13 // red LED
#define LED2_PIN_INVERSE 1

// -----------------------------------------------------------------------------
// Arlec Smart PB89HA Power Strip
// https://templates.blakadder.com/arlec_PB89HA.html
// -----------------------------------------------------------------------------

#elif defined(ARLEC_PB89HA)

// Info
#define MANUFACTURER "ARLEC"
#define DEVICE "PB89HA"

// 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 12

// LEDs
#define LED1_PIN 1
#define LED1_PIN_INVERSE 1

// -----------------------------------------------------------------------------

#else
Expand Down
8 changes: 8 additions & 0 deletions code/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1019,3 +1019,11 @@ src_build_flags = -DNEDIS_WIFIP310FWT
[env:nedis-wifip310fwt-sensor]
extends = env:esp8266-1m-base
src_build_flags = -DNEDIS_WIFIP310FWT -DANALOG_SUPPORT=1

[env:arlec-pc190ha]
extends = env:esp8266-1m-base
src_build_flags = -DARLEC_PC190HA

[env:arlec-pb89ha]
extends = env:esp8266-1m-base
src_build_flags = -DARLEC_PB89HA