Posted: Wed Nov 16, 2022 10:05 pm Post subject: Rainbow RGB channels [solved].
Hello All,
I'm writing to you to ask about "config rainbow" and double check what I wrote below.
I'm using WS2811 and code:
Code:
Dim Color(3)asByte
R alias Color(_base): G alias Color(_base +1): B alias Color(_base +2)
RB_SelectChannel 0' select first channel
R =10: G =100: B =250' define a color
RB_SetColor 0 , color(1)' update leds
RB_Send
What I can see is that, R and G channels are switched.
SET= NC
AVR CLK= 8 and 12 MHz were checked.
Thanks!
Przemek
(BASCOM-AVR version : 2.0.8.5 )
Edit:
Of course I can change settings here:
Code:
G alias Color(_base): R alias Color(_base +1): B alias Color(_base +2)
but I'm thinking why this difference is present (example vs. WS2811 in SO8 package). Maybe there is no difference between example and produced LEDs which have WS inside LED enclosure?
Nevertheless, based on datasheet we have data input format as RGB.
Edit2 with solved status.
Based on help... .
Quote:
The possible options are :
3 - The default. Leds like WS2811/WS2812 with GRB order.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum