Enable My92X1 for ESP32

This commit is contained in:
Theo Arends 2021-12-19 16:57:57 +01:00
parent 81aa579471
commit 463dd14f90
2 changed files with 3 additions and 2 deletions

View File

@ -145,7 +145,6 @@ String EthernetMacAddress(void);
#undef USE_RF_FLASH
// Not ported (yet)
#undef USE_MY92X1
#undef USE_PS_16_DZ
#undef USE_HM10 // Disable support for HM-10 as a BLE-bridge as an alternative is using the internal ESP32 BLE

View File

@ -125,7 +125,8 @@ void My92x1ModuleSelected(void)
digitalWrite(My92x1.pdcki_pin, LOW);
My92x1.model = 2;
TasmotaGlobal.light_type = LT_RGBW; // RGBW (2 chips) as used in Lohas
TasmotaGlobal.light_type = LT_RGBW; // RGBW (2 chips) as used in Lohas
#ifdef ESP8266
if (AILIGHT == TasmotaGlobal.module_type) { // RGBW (1 chip) as used in Ailight
My92x1.model = 0;
// TasmotaGlobal.light_type = LT_RGBW;
@ -134,6 +135,7 @@ void My92x1ModuleSelected(void)
My92x1.model = 1;
TasmotaGlobal.light_type = LT_RGBWC;
}
#endif // ESP8266
LightMy92x1Init();