forked from tinygo-org/drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid creating unnecessary garbage in the following ways: * Use the Transfer method instead of the Tx method for single byte transfers. * Use a statically allocated buffer for the fixed start-of-frame sequence. Running this for a few minutes did not cause the garbage collector to run. Previously, it would run every second or so in a persistence-of-vision application.
- Loading branch information
1 parent
c3f3af5
commit 91539d9
Showing
2 changed files
with
20 additions
and
15 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