Skip to content

Fix 16x04 lines 3 and 4 #23

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

Merged
merged 1 commit into from
Jan 10, 2021
Merged

Fix 16x04 lines 3 and 4 #23

merged 1 commit into from
Jan 10, 2021

Conversation

petrkr
Copy link
Contributor

@petrkr petrkr commented Apr 23, 2019

When you using 4 lines with 16 cols, last two lines (3 and 4) are moved by 4 chars. It's because there is hard-coded move by 0x14... But that would work for 20x4 displays. For 16x04 memory map is arranged different way.

source: http://web.alfredstate.edu/faculty/weimandn/lcd/lcd_addressing/lcd_addressing_index.html

This fix is only for 16x04. Regarding to source web pages there could be more logic for other memory maps too (like 40x4 etc...)

@dhylands dhylands merged commit c0262c6 into dhylands:master Jan 10, 2021
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