Skip to content

Commit

Permalink
fix LED, C2 has no i2s
Browse files Browse the repository at this point in the history
  • Loading branch information
Staars committed Dec 2, 2024
1 parent e2bae09 commit 66432bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/tasmota_xlgt_light/xlgt_01_ws2812_esp32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const uint16_t kTasLed_Type = kTasLed_PixelSize | kTasLed_PixelOrder | kTasLed_P

// select hardware acceleration - bitbanging is not supported on ESP32 due to interference of interrupts
#if CONFIG_IDF_TARGET_ESP32C2
const uint32_t kTasLed_Hardware = TasmotaLed_I2S; // I2S
const uint32_t kTasLed_Hardware = TasmotaLed_SPI; // no I2S for the C2
#else // all other ESP32 variants
#if defined(USE_WS2812_DMA)
const uint32_t kTasLed_Hardware = TasmotaLed_RMT; // default DMA to RMT
Expand Down

0 comments on commit 66432bd

Please sign in to comment.