Hallo Robert,
ganz so einfach ists nicht.
Die Initialisierung des PCA passt.
Aber dann muß das Display initialisiert werden.
Damit das Display überhaupt Daten annimmt muß der Anschluß Enable ein und ausgeschaltet werden
Laut Datasheet vom Display:
so. jetzt blinkt der Cursor links oben. Soweit sogut.Code:I2cstart I2cwbyte Pcf8574_lcd I2cwbyte &H03 I2cwbyte &H01 I2cstop Waitms 2 I2cstart I2cwbyte Pcf8574_lcd I2cwbyte &H02 I2cwbyte &H3C I2cwbyte &H00 I2cstop Waitms 2 I2cstart I2cwbyte Pcf8574_lcd I2cwbyte &H03 I2cwbyte &H01 I2cstop Waitms 2 I2cstart I2cwbyte Pcf8574_lcd I2cwbyte &H02 I2cwbyte &H0F I2cwbyte &H00 I2cstop Waitms 2 I2cstart I2cwbyte Pcf8574_lcd I2cwbyte &H03 I2cwbyte &H01 I2cstop Waitms 2 I2cstart I2cwbyte Pcf8574_lcd I2cwbyte &H02 I2cwbyte &H01 I2cwbyte &H00 I2cstop







Zitieren

Lesezeichen