Browse Source

Including support for Arlec PC190HA/PB89HA (#2286)

mcspr-patch-1
Matt Black 4 years ago
committed by GitHub
parent
commit
774a73d1d4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 0 deletions
  1. +2
    -0
      code/espurna/config/arduino.h
  2. +51
    -0
      code/espurna/config/hardware.h
  3. +8
    -0
      code/platformio.ini

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

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


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

@ -4763,6 +4763,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


+ 8
- 0
code/platformio.ini View File

@ -1023,3 +1023,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

Loading…
Cancel
Save