16 x 2 LCD
Posted: Sun Jul 10, 2022 12:50 am
I have a 16x2 LCD that I want to use with a pyboard and Dave Hylands' python_lcd API that can be found here:
https://github.com/dhylands/python_lcd
My LCD display is described here:
https://wiki.52pi.com/index.php?title=Z-0234
The chip on the 'backpack' of my LDC is marked as a PCF8574T. The API expects the backpack to have an I2C address between 0x20 and 0x27. When I scan the I2C address of my device, the pyboard returns [39].
I haven't found a reference for a part labeled PCF8574T. However, I found a datasheet for the PCF8754x here:
https://www.nxp.com/docs/en/data-sheet/ ... F8574A.pdf
Table 4 of the datasheet seems to match with the API expected addresses of between 0x20 and 0x27. I suspect my device is a PCF8574A or similar, since 0x39 is an expected address as shown in Table 5.
I tried changing the DEFAULT_I2C_ADDR variable to 0x39 in the module pby_i2c_lcd.py, but this change alone doesn't seem to work.
Is it straightforward to make some changes to the API to work with the LCD display that I have?
Thanks
Andy
https://github.com/dhylands/python_lcd
My LCD display is described here:
https://wiki.52pi.com/index.php?title=Z-0234
The chip on the 'backpack' of my LDC is marked as a PCF8574T. The API expects the backpack to have an I2C address between 0x20 and 0x27. When I scan the I2C address of my device, the pyboard returns [39].
I haven't found a reference for a part labeled PCF8574T. However, I found a datasheet for the PCF8754x here:
https://www.nxp.com/docs/en/data-sheet/ ... F8574A.pdf
Table 4 of the datasheet seems to match with the API expected addresses of between 0x20 and 0x27. I suspect my device is a PCF8574A or similar, since 0x39 is an expected address as shown in Table 5.
I tried changing the DEFAULT_I2C_ADDR variable to 0x39 in the module pby_i2c_lcd.py, but this change alone doesn't seem to work.
Is it straightforward to make some changes to the API to work with the LCD display that I have?
Thanks
Andy