Skip to content

emcniece/rpi-lcd

Repository files navigation

Raspberry Pi I2C LCD Library

Overview

  • Wire rPi/LCD/button as needed (I2C0, I2C1...)
  • Clone into /root/rpi-lcd, cd /root/rpi-lcd
  • Test I2C connectivity: i2cdetect -y 1
    • Table should dump with attached devices
  • python example.py

Instructions for setting up a I2C LCD on an rPi inside Zim

The rPi scripts must be installed at /root/rpi-lcd/ because I haven't found a nice way to detect execution directory during startup bash scripts.

In rPi console:

  • clone https://github.com/emcniece/rpi-lcd
    • sudo su -
    • cd
    • git clone https://github.com/emcniece/rpi-lcd.git
  • Install:
    • cd /root/rpi-lcd
    • ./install
  • Optional: Manual Install:
    • cp /root/rpi-lcd/init.d/ZimPi-LCD.sh /etc/init.d/ZimPi-LCD.sh
    • update-rc.d ZimPi-LCD.sh defaults
    • cp /root/rpi-lcd/init.d/ZimPi-boot.sh /etc/init.d/ZimPi-boot.sh
    • update-rc.d ZimPi-boot.sh defaults
    • cp /root/rpi-lcd/init.d/ZimPi-button.sh /etc/init.d/ZimPi-button.sh
    • update-rc.d ZimPi-button.sh defaults

Power Button

The power button (/init.d/ZimPi-button.sh) is designed to accommodate a momentary SPST on the far right GPIO pins. For the rPi B r2 this is GPIO7 - if you need this to be a different pin, edit this file before copying to /etc/init.d/ZimPi-button.sh and installing with update-rc.d.

Extra Octoprint Config

The .octoprint/config.yaml file has a few custom buttons that I found handy for toggling lights. Add this to the end of your /home/pi/.octoprint/config.yaml file if you want to use it!

About

Set up an I2C LCD on a Raspberry Pi inside a ZeePro Zim 3D Printer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published