This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now we shouldn't experience wait cycles in i2c_write() during typical display writes any longer. It should also distribute CPU load of display writes a lot better. Previously writing a line of text to the display would take almost as long as it took to actually send it to the display, because the I2C queue could hold only one transmission, which effectively meant only one character. This could hold the main loop for several milliseconds. Now we queue characters, send them one by one, and return to the main loop in between. This costs 160 bytes program memory. Only 18 bytes RAM, because the I2C queue was reduced accordingly. Now: Program: 24456 bytes Data: 1543 bytes EEPROM: 32 bytes
- Loading branch information
Showing
5 changed files
with
83 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
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
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