Skip to content

Commit

Permalink
Removed specific support for Magic Home LED Controller 2.3 (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Feb 3, 2018
1 parent 6ef4d13 commit 53469c1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 45 deletions.
1 change: 0 additions & 1 deletion code/espurna/config/arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
//#define ARILUX_AL_LC11
//#define ARILUX_AL_LC02
//#define WEMOS_D1_TARPUNA_SHIELD
//#define MAGICHOME_LED_CONTROLLER_23

//--------------------------------------------------------------------------------
// Features (values below are non-default values)
Expand Down
29 changes: 0 additions & 29 deletions code/espurna/config/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -914,35 +914,6 @@
#define IR_PIN 4
#define IR_BUTTON_SET 1

#elif defined(MAGICHOME_LED_CONTROLLER_23)

// Info
#define MANUFACTURER "MAGICHOME"
#define DEVICE "LED_CONTROLLER_23"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1

// LEDs
#define LED1_PIN 2
#define LED1_PIN_INVERSE 1

// Light
#define LIGHT_CHANNELS 4
#define LIGHT_CH1_PIN 12 // RED
#define LIGHT_CH2_PIN 5 // GREEN
#define LIGHT_CH3_PIN 13 // BLUE
#define LIGHT_CH4_PIN 15 // WHITE
#define LIGHT_CH1_INVERSE 0
#define LIGHT_CH2_INVERSE 0
#define LIGHT_CH3_INVERSE 0
#define LIGHT_CH4_INVERSE 0

// IR
#define IR_SUPPORT 1
#define IR_PIN 4
#define IR_BUTTON_SET 1

// -----------------------------------------------------------------------------
// HUACANXING H801 & H802
// -----------------------------------------------------------------------------
Expand Down
15 changes: 0 additions & 15 deletions code/espurna/migrate.ino
Original file line number Diff line number Diff line change
Expand Up @@ -698,21 +698,6 @@ void migrate() {
setSetting("chLogic", 3, 0);
setSetting("relays", 1);

#elif defined(MAGICHOME_LED_CONTROLLER_23)

setSetting("board", 53);
setSetting("relayProvider", RELAY_PROVIDER_LIGHT);
setSetting("lightProvider", LIGHT_PROVIDER_DIMMER);
setSetting("chGPIO", 0, 12);
setSetting("chGPIO", 1, 5);
setSetting("chGPIO", 2, 13);
setSetting("chGPIO", 3, 15);
setSetting("chLogic", 0, 0);
setSetting("chLogic", 1, 0);
setSetting("chLogic", 2, 0);
setSetting("chLogic", 3, 0);
setSetting("relays", 1);

#else

// Allow users to define new settings without migration config
Expand Down

0 comments on commit 53469c1

Please sign in to comment.