Advertisement
Guest User

Lyasi Module changes

a guest
Jan 30th, 2019
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.90 KB | None | 0 0
  1. diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino
  2. index be5964a..b639adc 100755
  3. --- a/sonoff/sonoff.ino
  4. +++ b/sonoff/sonoff.ino
  5. @@ -2560,7 +2560,7 @@ void GpioInit(void)
  6.    else if (SONOFF_LED == Settings.module) {  // PWM Dual color led (White warm and cold)
  7.      light_type = LT_PWM2;
  8.    }
  9. -  else if (AILIGHT == Settings.module) {     // RGBW led
  10. +  else if (AILIGHT == Settings.module || LYASI == Settings.module) {     // RGBW led
  11.      light_type = LT_RGBW;
  12.    }
  13.    else if (SONOFF_B1 == Settings.module) {   // RGBWC led
  14. diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h
  15. index 48af9cf..e368bdd 100755
  16. --- a/sonoff/sonoff_template.h
  17. +++ b/sonoff/sonoff_template.h
  18. @@ -237,6 +237,7 @@ enum SupportedModules {
  19.    SONOFF_BRIDGE,
  20.    SONOFF_B1,
  21.    AILIGHT,
  22. +  LYASI,
  23.    SONOFF_T11,
  24.    SONOFF_T12,
  25.    SONOFF_T13,
  26. @@ -521,6 +522,7 @@ const uint8_t kModuleNiceList[MAXMODULE] PROGMEM = {
  27.    HUAFAN_SS,
  28.    KMC_70011,
  29.    AILIGHT,            // Light Bulbs
  30. +  LYASI,
  31.    PHILIPS,
  32.    WITTY,              // Development Devices
  33.    WEMOS
  34. @@ -889,6 +891,21 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
  35.       GPIO_DCKI,        // GPIO15 my9291 DCKI
  36.       0, 0
  37.    },
  38. +  { "Lyasi",         // Ai-Thinker RGBW led (ESP8266 - my9291)
  39. +     GPIO_KEY1,        // GPIO00 Pad
  40. +     GPIO_USER,        // GPIO01 Serial RXD and Optional sensor pad
  41. +     GPIO_USER,        // GPIO02 Optional sensor SDA pad
  42. +     GPIO_USER,        // GPIO03 Serial TXD and Optional sensor pad
  43. +     GPIO_DI, GPIO_DCKI, // DI AND DCKI ON 4 and 5
  44. +     0, 0, 0,          // Flash connection
  45. +     0, 0,
  46. +     0,                // Flash connection
  47. +     0,
  48. +     0,          // GPIO13 my9291 DI
  49. +     0,
  50. +     0,        // GPIO15 my9291 DCKI
  51. +     0, 0
  52. +  },
  53.    { "Sonoff T1 1CH",   // Sonoff T1 1CH (ESP8285)
  54.       GPIO_KEY1,        // GPIO00 Button 1
  55.       GPIO_USER,        // GPIO01 Serial RXD and Optional sensor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement