-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PICO PIO testing with WS2812B #5
Comments
Closed
I've reverted the changes and moved all changes to a PR for better following of changes. |
Thank you Patrício! |
Latest main now contains changes that match the tinygo drivers implementation behaviour, please give it a try! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Congratulations Patricio! I've already managed to do some tests on the Raspberry Pico with the WS281B example. Thank you.
https://github.com/tinygo-org/pio/tree/main/rp2-pio/examples/ws2812
But I found some things that need correction or change.
ws, err := piolib.NewWS2812(sm, ws2812Pin, 16000000)
This function lacked the definition of the Baud rate.
Through testing, I discovered the frequency of 16MHz (maybe it is based on Arduino?).
func NewWS2812(sm pio.StateMachine, pin machine.Pin, baud uint32) (*WS2812, error)
The color sequence appears to be incorrect.
Based on the WS2812B datasheet, we can verify that the color sequence in the 24 bits is green-red-blue and not RGB.
https://cdn-shop.adafruit.com/datasheets/WS2812.pdf
https://github.com/tinygo-org/pio/blob/main/rp2-pio/piolib/ws2812.go
The text was updated successfully, but these errors were encountered: