-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to allow dynamic modification of the bytes_encoder_config parameter in the rmt_new_bytes_encoder function? (IDFGH-11662) #12775
Comments
hi @zigele So you need to change the bit0 and bit1 of the bytes encoder at runtime. One of the solution I can think of is to provide two "setters" for the bytes encoder to reassign the bit0 and bit1 representation. Or simply provide a reconfigure function to initialize the rmt_bytes_encoder_init(rmt_encoder_handle_t bytes_encoder, const rmt_bytes_encoder_config_t *config); |
I tried.
To implement modifying the parameters of the rmt_bytes_encoder_config_t structure without calling the rmt_new_bytes_encoder() function repeatedly.
That's what I wanted. |
Answers checklist.
General issue report
I want to dynamically modify the duration0 parameter in the bytes_encoder_config structure on the encoder callback function. Similar to the following usage, but this will result in frequent calls to the heap_caps_calloc function and I'm worried about poor performance.
the importan is
all code here:
If I use similar demo code,like this.
How can I dynamically change the duration0 and duration1 parameters of the bytes_encoder variable In the rmt_encode_ir_nec function ?
when i call the funtion rmt_new_bytes_encoder,i haveno way to change the duration0 and duration1 param in the struct 'bytes_encoder_config'
like:
The text was updated successfully, but these errors were encountered: