Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character rendering optimizations and off-by-one fix #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

slyglif
Copy link

@slyglif slyglif commented Jan 4, 2024

Optimize lcd_write_char by rendering to a temporary memory buffer then using lcd_draw_image (and indirectly i2c_burst_transfer) instead of manually pushing a pixel at a time.

Remove an unnecessary REG_SYNC from lcd_write_string (it is handled indirectly by lcd_write_char).

Fix an off-by-one error in lcd_fill_rectangle (it effectively cropped the right most and bottom most pixels).

…_burst_transfer).

Fix an off-by-one error in lcd_fill_rectangle.
Remove an unnecessary REG_SYNC from lcd_write_string.
@jpsullivan
Copy link

No idea why this hasn't been merged in but this is a great contribution, @slyglif -- thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants