Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino
- index be5964a..b639adc 100755
- --- a/sonoff/sonoff.ino
- +++ b/sonoff/sonoff.ino
- @@ -2560,7 +2560,7 @@ void GpioInit(void)
- else if (SONOFF_LED == Settings.module) { // PWM Dual color led (White warm and cold)
- light_type = LT_PWM2;
- }
- - else if (AILIGHT == Settings.module) { // RGBW led
- + else if (AILIGHT == Settings.module || LYASI == Settings.module) { // RGBW led
- light_type = LT_RGBW;
- }
- else if (SONOFF_B1 == Settings.module) { // RGBWC led
- diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h
- index 48af9cf..e368bdd 100755
- --- a/sonoff/sonoff_template.h
- +++ b/sonoff/sonoff_template.h
- @@ -237,6 +237,7 @@ enum SupportedModules {
- SONOFF_BRIDGE,
- SONOFF_B1,
- AILIGHT,
- + LYASI,
- SONOFF_T11,
- SONOFF_T12,
- SONOFF_T13,
- @@ -521,6 +522,7 @@ const uint8_t kModuleNiceList[MAXMODULE] PROGMEM = {
- HUAFAN_SS,
- KMC_70011,
- AILIGHT, // Light Bulbs
- + LYASI,
- PHILIPS,
- WITTY, // Development Devices
- WEMOS
- @@ -889,6 +891,21 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
- GPIO_DCKI, // GPIO15 my9291 DCKI
- 0, 0
- },
- + { "Lyasi", // Ai-Thinker RGBW led (ESP8266 - my9291)
- + GPIO_KEY1, // GPIO00 Pad
- + GPIO_USER, // GPIO01 Serial RXD and Optional sensor pad
- + GPIO_USER, // GPIO02 Optional sensor SDA pad
- + GPIO_USER, // GPIO03 Serial TXD and Optional sensor pad
- + GPIO_DI, GPIO_DCKI, // DI AND DCKI ON 4 and 5
- + 0, 0, 0, // Flash connection
- + 0, 0,
- + 0, // Flash connection
- + 0,
- + 0, // GPIO13 my9291 DI
- + 0,
- + 0, // GPIO15 my9291 DCKI
- + 0, 0
- + },
- { "Sonoff T1 1CH", // Sonoff T1 1CH (ESP8285)
- GPIO_KEY1, // GPIO00 Button 1
- GPIO_USER, // GPIO01 Serial RXD and Optional sensor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement