Basic ITEM_LIST_REF help #384
Unanswered
dwilbourn618
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Can you please explain what you want to do tho the value later? Or better still provide a code snippet. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying to add some ITEM_LIST_REFs to a menu but I can't get the syntax right. The only example I can find for the ITEM_LIST_REF just prints the color to the serial port using the callback
[](const Ref<uint8_t> color) { Serial.println(colors[color.value]);}
but I don't need to do that, assuming we use the same example, I just want to set a variable to the selected color name. : e.g. "Red" or "Green". I have been trying all day to work out what the correct syntax for this would be but without sucess.
Beta Was this translation helpful? Give feedback.
All reactions