Page 1 of 1

RMT led encoder - Modify bytes on the fly

Posted: Wed Jan 22, 2025 7:06 pm
by Xylopyrographer
Hi all. I'm working on some code based on the RMT Transmit Example -- LED Strip located here: https://github.com/espressif/esp-idf/tr ... /led_strip

I need to modify led_strip_encoder.c so that I can modify on the fly the byte pulled from the led_strip_pixels buffer before it is encoded and then sent further down the processing chain.

Need to do it this way so the bytes in the led_strip_pixels buffer remain as-is as the modification prior to encoding is destructive to the original byte value.

I don't have enough C or C++ knowledge to understand where in the led_strip_encoder.c code the byte is pulled from the buffer so if anyone can lend a hand would be very appreciated.