Open
Description
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
- 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");
}
}
}
- The LCD2004 will display below:
Expected behaviour
Expected: can read the display easy
Real world happen: cannot read the display
Screenshots
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