Skip to content

Speed up SPI.writePattern() #1920

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

Merged
merged 1 commit into from
Apr 17, 2016
Merged

Speed up SPI.writePattern() #1920

merged 1 commit into from
Apr 17, 2016

Conversation

WereCatf
Copy link
Contributor

The old code kept re-writing fifo's contents over and over and over every iteration, both with data from MISO and then with the supplied data -- this new version writes fifo's contents only once, disables it from being overwritten by data from MISO and as such also skips on writing its contents over and over again with supplied data.

This results in major speed-ups in anything that uses writePattern(), like e.g. with @Links2004 's ILI9341-library there's about a 54% speed-up in fill-screen and anything from 30%-50% speed-up with anything else that uses writePattern() behind-the-scenes.

@igrr igrr merged commit 43d0989 into esp8266:master Apr 17, 2016
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