No description, website, or topics provided.
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.
.octoprint
bash
init.d
scripts
.gitignore
README.md
RPi_I2C_driver.py
example.py
install
rpi_pinout.png
rpi_wiring_diagram.png

README.md

#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!