Is there any example for the RMT simple callback encoder: https://docs.espressif.com/projects/esp ... ck-encoder? From the documentation, I still don't fully understand how the encoder callback works, so I'd love to see a working example. More specifically, I am interested in generating a "long" waveform using RMT, which means it needs to be transmitted in chunks. In the doc,
If the space is not enough for the callback to encode something, it can return 0 and the RMT will wait for previous symbols to be transmitted and call the callback again, now with more space available.
Does that mean I have filled up/encoded a chunk of data, I need it transmit it first, then reset the encoder? then repeat? Or what are the steps I need to do? Any pseudocode on how I can use the simple callback encoder for this would be greatly appreciated as well!
Thanks!