dbrgn / RPLCD

A Raspberry Pi LCD library for the widely used Hitachi HD44780 controller, written in Python. GPIO (parallel) and I²C modes supported.
https://rplcd.readthedocs.io/en/latest/
MIT License
261 stars 72 forks source link

single row of block #94

Closed wiryonolau closed 5 years ago

wiryonolau commented 5 years ago

Hi, I'm using Raspberry PI 1 Rev B ( Only 26 Pin ) and using I2C with LED1602 16x2 LCD Display Shield Module RGB backlight https://ae01.alicdn.com/kf/HTB1ZBj9n4PI8KJjSspfq6ACFXXay/16x2-LCD-Display-Shield-Module-RGB-backlight-for-Raspberry-Pi-3-Model-B-2B.jpg_q50.jpg

I try writing to it and it only show single row of block, no text. Any idea why, maybe I need to tweak the pin since it is pretty old raspberry

from RPLCD.i2c import CharLCD

lcd = CharLCD('MCP23017', address=0x20, port=1, expander_params={"gpio_bank":"A"}, cols=16, rows=2, dotsize=8)
lcd.write_string("test")
dbrgn commented 5 years ago

@ageir do you know more about possible reasons for this? (Pinging you since you added the MCP23017, but I'm not sure if this issue can even be related to the port expander or not...)

wiryonolau commented 5 years ago

I guess it wired differently, actualy it works.

When I use RPLCD the backlight is lit on , but the LED above LCD is not and text is not appear But When I use Adafruit_CircuitPython_CharLCD, the text appear but backlight is not lit , LED has RGB color.

Guess I need to combine both of this