Trying to test a new 20x4 LCD but getting garbage. The LCD is wired onto the board directly and I chose very simple display code. I installed the Liquidcrystal_i2c library.
Sorry, am a noob and don't know what you mean by code tags?
Yes, the displayed text does change if i change the text in the code. It also seems to cycle between two types of garbage if is just re-upload the same code again.
You may need this (I couldn't find the 2 channel version, this is the 4 channel): https://www.sparkfun.com/products/12009
but I strongly advise you to try the display with an UNO or Nano etc. first...
I haven't played with the pi3 yet, but I thought it was also 3.3V.
You don't need any level shifters. Just connect to 5V, GND, SCL, SDA pins on the Leo.
LiquidCrystal_I2C libraries are suspect. We don't know which LiquidCrystal_I2C library you have installed or where you got it from.
I strongly advise installing Bill Perry's hd44780.h library via the IDE Library Manager.
There is a diagnostic sketch in the examples.
C:\Users\ .. \Documents\Arduino\libraries\hd44780\examples\ioClass\hd44780_I2Cexp\I2CexpDiag\I2CexpDiag.ino
Are you thinking, because there is no MOSFET pull up on the 5V side? What about the logic thresholds? Long term reliability?
Consider:
" Since the I2C bus lines are used bidirectionally, interfacing I2C devices with different voltages is not straightforward, special level-shifting devices are necessary for this purpose." http://www.i2c-bus.org/voltage-level/
OK, so I tried a different library as this is a PCF8574 adaptor. With my 2 line display it now works but not the 4 line display (both are PCF8574).
As I have something working now, i will try and expand out form there.
Thx for your assistance