Skip to content

nanoFramework.Iot.Device.CharacterLcd --version 1.1.789: wrong order of characters #1627

Open
@VuTruHoangDa

Description

@VuTruHoangDa

Library/API/IoT binding

nanoFramework.Iot.Device.CharacterLcd

Visual Studio version

VS2022 (17.13.6)

.NET nanoFramework extension version

2022.12.1.45

Target name(s)

ESP32_REV3

Firmware version

No response

Device capabilities

No response

Description

When writing a very long word, my LCD2004 will display wrong order and i cannot read. Please see the attached picture to understand why i cannot read it.

How to reproduce

  1. Solder LCD2004 I2C to ESP32 with SDA pin 25 and SCL pin 26. And run this code
using Iot.Device.CharacterLcd;
using System.Device.I2c;


namespace ReportBugLCD
{
   public class Program
   {
   	public static void Main()
   	{
   		var i2cDevice = I2cDevice.Create(new(2, 0x27));
   		using var lcdInterface = LcdInterface.CreateI2c(i2cDevice, false);
   		using var lcd = new Lcd2004(lcdInterface);
   		lcd.UnderlineCursorVisible = false;
   		lcd.Write("This is the very long long word and it will span multiple lines of LCD 2004");
   	}
   }
}

  1. The LCD2004 will display below:

Image

Expected behaviour

Expected: can read the display easy
Real world happen: cannot read the display

Screenshots

Image

Sample project or code

using Iot.Device.CharacterLcd;
using System.Device.I2c;


namespace ReportBugLCD
{
   public class Program
   {
   	public static void Main()
   	{
   		var i2cDevice = I2cDevice.Create(new(2, 0x27));
   		using var lcdInterface = LcdInterface.CreateI2c(i2cDevice, false);
   		using var lcd = new Lcd2004(lcdInterface);
   		lcd.UnderlineCursorVisible = false;
   		lcd.Write("This is the very long long word and it will span multiple lines of LCD 2004");
   	}
   }
}

Aditional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions