![]() |
Forum Index : Microcontroller and PC projects : WS2812 - SK 6812W DEVICE Command
Author | Message | ||||
Hansaplast Newbie ![]() Joined: 13/07/2023 Location: Hong KongPosts: 12 |
[Quote] Full support for the WS2812 multi colour LED chip which can be daisy chained into long strings? really? But how to address 200 LED's in a single line? Any Idea or help? Dim a%(19)=(&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000,&h00ff0000) >Only max. 20< DEVICE ws2812 w, GP3, 200, a%() This is not working correct! Edited 2025-04-22 16:07 by Hansaplast |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7464 |
You don't. That's the clumsy way to set up the array. :) DIM it first then fill it using a READ loop. You can split the values over DATA statements. or, to set a single colour for the string, just assign each dimension value in the loop. If using DATA statements you can RESTORE to a label, so you can have several sets of values. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4815 |
Dim a%(199) For i=0 to 199 A%(i)=&h00ff0000 Next And then send the array . PicomiteVGA PETSCII ROBOTS |
||||
Hansaplast Newbie ![]() Joined: 13/07/2023 Location: Hong KongPosts: 12 |
Hello Thanks a lot. Let me have a try _______________________________ Dirk |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |