Skip to content

HD44780 LCD Display - Identical .ino and .go code behave differently. #4863

Open
@baddda

Description

@baddda

I was trying to get my setup run with this driver. Unfortunately I had several Issues and was able to break it down to the following scenario.

go file
ino file

The code mainly executes first some commands to setup the LCD screen. Clears the screen and then sets the cursor to the second row in the second column.

Running the ino file works as expected:

IMG_2797.2.mp4

Running the go file does not clear the display proper and the cursor is set to row 4 instead of 2.

IMG_2796.2.mp4

The interesting part is the last command of setting the cursor. Based on the documentation the command for setting the cursor at row 2 column 2 is 11000001 where the lower bits represent the position in the row. In this case at index 1. With the go file it seems like this command is seen as 11000011. So positioning the cursor at index 3 (row 4).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions