This repository was archived by the owner on Jan 24, 2026. It is now read-only.
In led_strip; purpose of rmt_translator_set_context()? #520
Answered
by
UncleRus
Xylopyrographer
asked this question in
Q&A
|
In the led_strip driver, I can't figure out what and am hoping someone can explain what exactly |
Answered by
UncleRus
May 29, 2023
Replies: 2 comments
|
The purpose of the rmt_translator_set_context() call is obvious: this function sets the strip handle as the translator context. Later, in the _rmt_adapter() function, which is called by the translator, we get this descriptor using rmt_translator_get_context(), find out the contents of the "brightness" field and automatically apply it using scale8_video(). |
0 replies
Answer selected by
UncleRus
|
Hello and thank-you for the reply. Appreciate you taking the time.
Have a great one.
On May 29, 2023, at 8:33 AM, Ruslan V. Uss ***@***.***> wrote:
The purpose of the rmt_translator_set_context() call is obvious: this function sets the strip handle as the translator context. Later, in the _rmt_adapter() function, which is called by the translator, we get this descriptor using rmt_translator_get_context(), find out the contents of the "brightness" field and automatically apply it using scale8_video().
—
Reply to this email directly, view it on GitHub <#520 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ATMBFQPMC7V6INJ5GIRLGITXISXRZANCNFSM6AAAAAAYPY5ZNQ>.
You are receiving this because you authored the thread.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The purpose of the rmt_translator_set_context() call is obvious: this function sets the strip handle as the translator context. Later, in the _rmt_adapter() function, which is called by the translator, we get this descriptor using rmt_translator_get_context(), find out the contents of the "brightness" field and automatically apply it using scale8_video().