Skip to content

NeoRgbwXXFeature #618

Answered by Makuna
TMoney1099 asked this question in Q&A
Jan 18, 2023 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

*ByteElements represent the number of actual bytes in the output stream to represent the "Pixel" (aka, single Item).
Your CustomNeo4ByteElements used 4 bytes when you need 6 bytes. This why the output was only 4 bytes.
See the standard Neo6ByteElements; copy it, name it Neo4Byte2BytePaddedElements, change the line within it from typedef Rgb48Color ColorObject; to typedef RgbwColor ColorObject
Merge this through the NoSettings object and NeoRgbwXXFeature (change the names to use the above naming, and case is important in the name, it should be NeoRgbwxxFeature))
In your NeoRgbwxxFeature , you need only the 4 bytes of the RGBW, but the last two bytes can just be constant zeros. Also is that…

Replies: 3 comments 4 replies

Comment options

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

@Makuna
Comment options

@TMoney1099
Comment options

@Makuna
Comment options

Answer selected by TMoney1099
Comment options

You must be logged in to vote
0 replies
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