|
Forum Index : Microcontroller and PC projects : Picomite and Neopixel RGBW.
| Author | Message | ||||
| aargee Senior Member Joined: 21/08/2008 Location: AustraliaPosts: 255 |
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 KingdomPosts: 10624 |
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: AustraliaPosts: 255 |
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 KingdomPosts: 10624 |
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: AustraliaPosts: 255 |
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. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |