This package contains LCD controller for Raspberry Pi.
- Raspbian Jessie
- Python 2.7
- LCD (ACM1602NI-FLW-FBW-M01)
- Raspberry Pi2 Model B
- Raspberry Pi Model A/B+ (unconfirmed)
$ sudo python raspi_lcd.py "Message for line 1" ["Message for line 2"]
You have to enable I2C in advance. Please read Prerequisite section.
- Half-width English numbers and letters
- Full-width / half-width Katakana
- Some special characters
If needed, edit BUS_NUMBER
and LCD_ADDR
in config.py
.
$ sudo raspi-config
- Select
9 Advanced Options
- Select
A7 I2C
- Select
Yes
twice - Reboot Raspberry Pi
$ sudo apt-get install i2c-tools python-smbus
$ sudo modprobe i2c-bcm2708
$ sudo modprobe i2c-dev
Open /boot/config.txt
and add line below.
dtparam=i2c_baudrate=50000
Reboot Raspberry Pi.
Do not use i2cdetect
command when LCD(ACM1602NI) is connected. Read access to i2c bus will causes hungging up of LCD.