Skip to content

In led_strip; purpose of rmt_translator_set_context()? #520

Answered by UncleRus
Xylopyrographer asked this question in Q&A
Discussion options

You must be logged in to vote

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().

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by UncleRus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants