Skip to content
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

Show() Function Speed Pi Pico vs. Raspberry (takes twice the time in Pi4) #138

Open
fabulou1 opened this issue Oct 4, 2022 · 1 comment
Labels

Comments

@fabulou1
Copy link

fabulou1 commented Oct 4, 2022

Hello,

i am having an "Issue" with the speed of the show() function. On a Pi Pico i get an execution time of the show() function of around 46 ms for a 1200 RGBW Led Strip. This is as far as my understanding is correct the expected signal time for this number of leds and colors. Oddly enough on a Raspberry Pi 4 the function takes twice as long. The execution time clocks in at around 90 ms. Is there a reason It takes that much longer? Is the Pi 4 pushing the Data at 400 kHz instead of 800 kHz? Or am I missing a setting?

I appreciate any input! Thanks!

@tekktrik
Copy link
Member

tekktrik commented Oct 4, 2022

Not a totally expert here, but I imagine the PI is slower because the operating system is managing a lot more resources than the Pico. Additionally, I believe the implementation for the function that does the transmission is compiled for the microcontroller, whereas the Pi's version is in Python. You could try speeding up the I2C clock potentially, but I wouldn't be surprised if the difference is just the fact the Pi is juggling a lot more in the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants