Skip to content

Spi pattern fix #502

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 2 commits into from
Jul 31, 2017
Merged

Spi pattern fix #502

merged 2 commits into from
Jul 31, 2017

Conversation

mcgillan
Copy link
Contributor

@mcgillan mcgillan commented Jul 11, 2017

Fixes problem where not enough data is sent when sending a repeating pattern via SPI that doesn't evenly divide into the hardware FIFO size (64 bytes).

For example, I was sending a 3-byte pattern (RGB data) for a 320 x 480 display, which fits 21 times into the hardware FIFO (3 * 21 = 63 bytes), and by the end of the routine 1/64th of the data (and therefore the image) was missing. This happened because for every 63 bytes sent, this routine decremented the byte count by 64.

mcgillan added 2 commits July 11, 2017 11:14
Calls to writePattern() don't send the desired number of bytes when the pattern size doesn't divide evenly into the hardware FIFO size (e.g. sending 18-bit RGB data, 11 patterns take 63 bytes, so 1/64th of the data is never sent).
Remove white space changes.
@me-no-dev
Copy link
Member

Thanks :)

@me-no-dev me-no-dev merged commit 2eaf846 into espressif:master Jul 31, 2017
Raienryu97 pushed a commit to Raienryu97/arduino-esp32 that referenced this pull request Aug 2, 2017
* Add files via upload

Calls to writePattern() don't send the desired number of bytes when the pattern size doesn't divide evenly into the hardware FIFO size (e.g. sending 18-bit RGB data, 11 patterns take 63 bytes, so 1/64th of the data is never sent).

* Add files via upload

Remove white space changes.
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