Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Subsequent uses of message only update the second line #16

@JanBe

Description

@JanBe

When using the message-method repeatedly, only the second line of the LCD is updated.
An example script for reproducing the issue can be found here: https://gist.github.com/JanBe/8f8390484c13b7ab42a7

When executing the script, it would be expected to find the following output on the LCD:

New first line
New second line

However, the LCD reads:

First line
New second linef

As stated above, the first line is not updated. Additionally, the second line contains fragments from the sentence that was supposed to end up in the first line. The sentence was written to the end of the second line and then again overwritten by the updated second line:
Second line => Second lineNew f => New second linef

A workaround is to call clear() before subsequent uses of message, which however results in a small period of time between the two messages, in which the display is empty (and therefore looks like its flickering).

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