|
|
@ -482,6 +482,21 @@ void hwUpwardsCompatibility() { |
|
|
|
setSetting("chLogic", 2, 0); |
|
|
|
setSetting("relays", 1); |
|
|
|
|
|
|
|
#elif defined(MAGICHOME_LED_CONTROLLER_2_0)
|
|
|
|
|
|
|
|
setSetting("board", 42); |
|
|
|
setSetting("relayProvider", RELAY_PROVIDER_LIGHT); |
|
|
|
setSetting("lightProvider", LIGHT_PROVIDER_DIMMER); |
|
|
|
setSetting("chGPIO", 1, 5); |
|
|
|
setSetting("chGPIO", 2, 12); |
|
|
|
setSetting("chGPIO", 3, 13); |
|
|
|
setSetting("chGPIO", 4, 15); |
|
|
|
setSetting("chLogic", 1, 0); |
|
|
|
setSetting("chLogic", 2, 0); |
|
|
|
setSetting("chLogic", 3, 0); |
|
|
|
setSetting("chLogic", 4, 0); |
|
|
|
setSetting("relays", 1); |
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#error "UNSUPPORTED HARDWARE!"
|
|
|
|