WS2812 BGR possible instead of RGB?


Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3191
Posted: 10:56pm 17 Jan 2025      

@Mixtel90 also found some with wrong colours.https://www.thebackshed.com/forum/ViewTopic.php?TID=17173&PID=225831#225831#225831 Though he didn't show his solution it would just require transposing the colours. See if this works
OriginalColour = RGB(red,green,blue)
TransposedColour =((OriginalColour >> 8)And &HFF00)+((OriginalColour<<8)And &HFF0000)+((OriginalColour)And &HFF)
WS2812 B, GP16, 1, TransposedColour