Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 15:10 29 Mar 2024 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 : bitbang ws2812 b works OK with 5.0704 but not with 5.070517

Author Message
k2backhoe
Regular Member

Joined: 04/12/2021
Location: United States
Posts: 41
Posted: 06:07pm 19 Aug 2022
Copy link to clipboard 
Print this post

I am using a Songhe 8X8 64 Bits 64 X WS2812B panel (I love these BTW, they are cheap and work great). I run the following code:

' paneltest
SetPin gp2, dout  ' output to ws2812b panel
Dim integer buffr(63)
For i = 0 To 63
 buffr(i) = 0
Next i
Bitbang ws2812 b, gp2, 64, buffr()
End


Using (Non-VGA) V5.0704 this works great, sets all LEDs off
Using V5.070517 this sets the first ws2812b of the 64 LED string to bright green, all others to off.
This is independent of any data in buffr().  All my display programs work fine with '04 but with '0517 have bright green on first LED only.  I wrote the above code to isolate the problem.  Problem repeats with 2 different Pi Picos and with 2 different Songhe.  Problem repeats with power cycling and Tera Term reload and laptop reset and on battery with autorun on.

Going back to '04, it works fine for everything that I do and I love it.



Edited 2022-08-20 04:08 by k2backhoe
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8516
Posted: 05:12pm 26 Aug 2022
Copy link to clipboard 
Print this post

Thanks for the info. Was caused by me trying to save RAM by leaving the WS2812 code in flash. Unfortunately this causes the timings on the first LED to go wrong as the code gets cached - will revert in the next beta
 
k2backhoe
Regular Member

Joined: 04/12/2021
Location: United States
Posts: 41
Posted: 06:13pm 26 Aug 2022
Copy link to clipboard 
Print this post

That makes sense.  So many interactions for you to consider!  I am amazed that it works so well.  Thanks again for this great tool.
 
Print this page


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

© JAQ Software 2024