Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:28 21 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Picomite and Neopixel RGBW.

Author Message
aargee
Senior Member

Joined: 21/08/2008
Location: Australia
Posts: 255
Posted: 11:20am 19 May 2022
Copy link to clipboard 
Print this post

Hello Geoff, Peter and all,

I would like to use the Picomite to drive one of theses:
4W RGBW Neopixel

I can run the RGB (albeit with the wrong colour allocation) using the BITBANG WS2812 command, but this outputs a 24Bit stream and hence just runs the RGB and not the White element, which requires a 32 bit stream.

Is this possible or will it be easier to jump back to an Arduino platform?

- Rob.
For crying out loud, all I wanted to do was flash this blasted LED.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10624
Posted: 12:10pm 19 May 2022
Copy link to clipboard 
Print this post

What happens if you just pretend there is a 2nd LED and put the white level in the 2nd array element? Assuming this works then with a bit of simple basic you can then drive strings by just setting bytes in the array appropriately

dim a%(n)=r1g1b1, w1r2g2, b2w2r3, g3b3w3 ........

Please report back if this works
Edited 2022-05-19 22:10 by matherp
 
aargee
Senior Member

Joined: 21/08/2008
Location: Australia
Posts: 255
Posted: 10:09pm 19 May 2022
Copy link to clipboard 
Print this post

Excellent Peter, that worked a treat.

In my case the RGB sequencing is around about, so it's the second byte in the second group that triggers the white.

e.g. the 24bit group triggers this way -

&HGGRRBB

So to turn on all LEDs including white at minimum brightness,

&HGGRRBB &HGGRRBB
&H010101 &H000100

and yes, if you make the other bytes 01 in the second group (&H010101) it will cause the green and red to light in the second LED array.

Something to work with. :-)
For crying out loud, all I wanted to do was flash this blasted LED.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10624
Posted: 07:12am 20 May 2022
Copy link to clipboard 
Print this post

  Quote  so it's the second byte in the second group that triggers the white.


That doesn't make any sense. Did you try the three timing variants to see which works best?

O = original WS2812
B = WS2812B
S = SK6812
 
aargee
Senior Member

Joined: 21/08/2008
Location: Australia
Posts: 255
Posted: 08:11am 21 May 2022
Copy link to clipboard 
Print this post

Peter,

I can confirm that all the variants (O, B or S) produce the same result as above, none of them change the colour sequence.

I'm using Picomite Ver 5.07.04

- Rob.
For crying out loud, all I wanted to do was flash this blasted LED.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025