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

Clarify SPI timing issue for Pi 4 #401

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

Gadgetoid
Copy link
Collaborator

This commits the findings from #381 to the documentation.

The TLDR is that the Pi 4's idle frequency scaling affects SPI, and this is fundamentally incompatible with the extremely timing sensitive hack method of driving WS281x LEDs used in this library.

Perhaps it would be possible to detect the CPU scaling frequency and dynamically adjust the SPI speed, to avoid needing to clamp it. Though I would not venture this as a priority, since power is likely not an issue when driving strands of LEDs or LED displays.

@Gadgetoid Gadgetoid merged commit 3a20f1b into jgarff:master Nov 6, 2020
@Xartrick
Copy link
Contributor

Xartrick commented Nov 6, 2020

I guess dynamically adjusting SPI speed based on CPU frequency can create offset and provide wrong timing.

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

Successfully merging this pull request may close these issues.

2 participants