Skip to content
\n

where the html color names are defined in https://github.com/Makuna/NeoPixelBus/blob/master/src/internal/colors/HtmlColorNameStrings.cpp

\n

I read this page but couldn't see an obvious answer.
\nhttps://github.com/Makuna/NeoPixelBus/wiki/HtmlColor-object-API

\n

Thank you.

","upvoteCount":1,"answerCount":4,"acceptedAnswer":{"@type":"Answer","text":"

you should just be able to pass the constant like

\n
strip.SetPixelColor(0, HTML_Fuchsia);\n
","upvoteCount":0,"url":"https://github.com/Makuna/NeoPixelBus/discussions/852#discussioncomment-10856057"}}}

Is it possible to set strip color based on htmlcolor name #852

Answered by Makuna
patfelst asked this question in Q&A
Discussion options

You must be logged in to vote

you should just be able to pass the constant like

strip.SetPixelColor(0, HTML_Fuchsia);

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Makuna
Comment options

Answer selected by patfelst
@patfelst
Comment options

@Makuna
Comment options

@patfelst
Comment options

Comment options

You must be logged in to vote
1 reply
@Makuna
Comment options

Comment options

You must be logged in to vote
1 reply
@Makuna
Comment options

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