Lightweight and fast library for I2C module HD44780 , tested on RaspberryPI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
PiHD44780.py
README.md
example.py

README.md

Features

  • Super lightweight (Only ONE 3.8KB file!)
  • Really fast (Using Hardware i2c)
  • Tested on 2x16 and 4x20
  • Cool "loading" animation

Usage

  1. Enable I2C interface with raspi-config

    • Open "raspi-config"
    • Select Advanced Options, I2C, Yes, Ok, Yes, Ok
    • With right arrow key select Finish and select Yes for reboot now.
    • After reboot I2C should be enabled
  2. Install python library and tools

    apt-get install python-smbus i2c-tools git-core
    
  3. Connect LCD

    • GND to GND
    • VCC to 5V
    • SDA to SDA (GPIO2)
    • SCL to SCL (GPIO3)
  4. Reboot raspberry to changes take effect

  5. Check LCD address, mine is 0x27

    i2cdetect -y 1
    
  6. Download library and run example.py

    git clone https://github.com/SkewPL/PiHD44780.git
    cd PiHD44780
    python example.py