Skip to content

16x4 LCD have 3rd and 4th line shifted by 4 chars #27

@petrkr

Description

@petrkr

When you using 16x4 (instead 20x4) display, then due this line buffer is shifted by 4 chars

addr += 0x14 # Lines 2 & 3 add 0x14

when you change this 0x14 to 0x10, it works. I suggest somehow IF it based on LCD_COLS

somethings like 0x10 if LCD_COLS==16 else 0x14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions