Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
lcd.Initialize(0x27, 16, 2) 'based on the example from the project.
' lcd.Initialize(0x27, 20, 4) ' for 20X4 lcd
lcd.Backlight = True
lcd.SetCursor(0,0)
lcd.Write ("Row 1")
lcd.SetCursor(0,1)
lcd.Write("Test")
End Sub
did not test that.Are you able to get it working with one of the C examples with Arduino IDE?
thanks for your answer.A few thoughts:
1. Have you tried setting the cursor before writing?
2. Have you tried changing the contrast poti on the i2c board? Even without a program running you should be able to see the block top left.B4X:Private Sub AppStart Serial1.Initialize(115200) Log("AppStart") lcd.Initialize(0x27, 16, 2) 'based on the example from the project. ' lcd.Initialize(0x27, 20, 4) ' for 20X4 lcd lcd.Backlight = True lcd.SetCursor(0,0) lcd.Write ("Row 1") lcd.SetCursor(0,1) lcd.Write("Test") End Sub
3. Try the address 0x3f instead of 0x27.
4. Check the address with an I2C scanner: Link