forked from adafruit/Adafruit-ST7735-Library
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lcd: use writePattern for faster erases and lines.
The ESP8266 SPI implementation has a 'writePattern' function that writes a repeating sequence (in this case a solid colour) to the SPI port. This fills up the FIFO and increases the bus utilisation. Using this for clearing the screen cuts the demo run time from 4721 ms to 3601 ms. Also using this for the fast lines cuts the run time to 3424 ms. Signed-off-by: Michael Hope <mlhx@google.com>
- Loading branch information
1 parent
a56ebc5
commit 51dddbd
Showing
2 changed files
with
19 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters