Skip to content

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