QWIIC OLED optimization (size reduction and speed improvements) and added new font option #14018
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Resolved "TODOs" for optimizing horizontal and vertical line drawing. New implementation reduces compiled code size by approximately 60 bytes for applications drawing both horizontal and vertical lines. Execution speed is also improved by eliminating multiplication from loops and drawing vertical up to lines 8 pixels at a time.
Added a third font (font5x7lite) which is a subset of the existing 5x7 font. It includes the same character subset as the 8x16 font which is mostly the alphanumerics and common symbols. If this font subset is used in lieu of the complete 5x7 font, the compiled file size decreases by almost 800 bytes.
Compiled file size reductions were measured for Atmega32u4 as a target.
Types of Changes
Issues Fixed or Closed by This PR
Checklist