-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I2C write was unreliable for a few reasons. timeouts were very short we were only waiting for i2c_bus_busy to be cleared, which sometimes happens before the fifo is empty. By switching timeouts to use elapsed microseconds (estimated via McycleDelay) and waiting for an empty fifo, I can reliably use a SSD1306 screen now. This was impossible before. * Add ms_since function to McycleDelay * Use McycleDelay for i2c timeouts * Wait for i2c tx fifo empty to disable xmit * Update i2c timeout docs * I2C: Replace millisecond with microsecond timeouts
- Loading branch information
Showing
2 changed files
with
38 additions
and
9 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