Browse Source

Merge pull request #1181 from whitebird/dev

Add support for Phyx ESP12 RGB controller
webui
Xose Pérez 6 years ago
committed by GitHub
parent
commit
a395e730c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +18
    -0
      code/espurna/config/hardware.h

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

@ -97,6 +97,7 @@
//#define YJZK_SWITCH_3CH
//#define XIAOMI_SMART_DESK_LAMP
//#define ALLTERCO_SHELLY2
//#define PHYX_ESP12_RGB
//--------------------------------------------------------------------------------
// Features (values below are non-default values)


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

@ -2927,6 +2927,24 @@
#define LLMNR_SUPPORT 1
#define NETBIOS_SUPPORT 1
#define SSDP_SUPPORT 1
#elif defined(PHYX_ESP12_RGB)
// Info
#define MANUFACTURER "PHYX"
#define DEVICE "ESP12_RGB"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1
// Light
#define LIGHT_CHANNELS 3
#define LIGHT_CH1_PIN 4 // RED
#define LIGHT_CH2_PIN 14 // GREEN
#define LIGHT_CH3_PIN 12 // BLUE
#define LIGHT_CH1_INVERSE 0
#define LIGHT_CH2_INVERSE 0
#define LIGHT_CH3_INVERSE 0
#endif


Loading…
Cancel
Save