• Tom Sutcliffe's avatar
    Fix ws2812 on later esp32 variants · 1b38d8e6
    Tom Sutcliffe authored
    By not relying on the internal details of the RMT registers. For example
    on the esp32s2, the threshold event bits start at bit 12 not bit 24, and
    on the esp32s3 the memory buffers are only 48 words not 64. Also the
    esp-idf recommends against hooking the rmt ISR in the first place.
    
    Instead, use the published rmt APIs (specifically rmt_write_sample and
    rmt_translator_init) and the default rmt ISR, which should be much more
    resilient against future esp32 SoC changes.
    1b38d8e6
ws2812.c 7.54 KB