Mini => Screen
SCA => SCA + 1k8 Pull up res to 5V
SCL => SCL + 1k8 Pull up res to 5V
Seem’s the screen receives something but i can just get strange chars or the backlight turn’s on/off…
I tried to reverse bit order but it doesn’t help.
i am starting to guess why it’s not working the wiring on my hardware (screen) doesn’t correspond to the “bansky” wiring…
my chip PCF8574T is connected like this :
PCF8574T => LCD
7 => D7
6 => D6
5 => D5
4 => D4
But “bansky” connected it to :
7 => D3
6 => D2
5 => D1
4 => D0
but knowing that the bytes must be cut in 4 by 4, and maybe the order should be reversed (no idea) and that they have to be mixed with commands and orders,
i am puzzled. it would be easier to find the code in .NET.
it was in fact the wiring. instead to put the command on the first 4 bits ( on the left). I had to put them on the right and shift the data to the left…
thanks architect for your support, you helped me to keep courage on this one
Sorry, don’t understand what difference you’re talking about - the D numbers are the same??!!
The PCF8574 is just an I2C IO module. Simplistically, you clock in 8 bits of data, then it presents those 8 bits as a single byte (across the 8 output wires). So what we need to do is make sure you present the right sequence of bits to the IO expander, so it presents the right sequence of bytes to the device. If you don’t have the same “bit-wire” connected to the LCD controller as the Bansky code sends, then you need to rearrange that appropriately.
Of course, the I2C adapter is just that, an adapter. You could hijack the raw HD44780 pins on the LCD and prove that works if you wanted to (but it’ll use a few more pins )