The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


I2C LCD display? differences from old 3.8?
#1
Hi!  I've been using MoodeAudio at version 3.8 and now I'm trying to update to version 9.1.5

I successfully created the USB (I previously enabled USB boot) with the image and the player boots and I can access the IP address and SSH into the Raspberry Pi 3B that it's running on.  Great.

My help is needed to get my LCD I2C display working.

I had an IC2 2x40 display running on the 3.8 version.  I had some python lcd code that was provided by Matt Hawkins (i2c-40x2-lcd.py I think).  To get it to run I had to first enable the I2C in the PI
  • sudo raspi-config
  • “I2C Enable/Disable automatic loading”
then install I2C tools and SMBUS
  • sudo apt-get install i2c-tools
  • sudo apt-get install python-smbus
Then edit rc.local (sudo nano /etc/rc.local) to add the python command to run the script just before the line that is "exit 0"
  • sudo python /home/pi/i2c-40x2-lcd.py
  • change permissions to rwxr-xr-x
This starts the script at boot and then it will update using "currentsong.txt"

works great...

----------------------------

So is that still the process on version 9 or is there a more streamlined way to get the I2C display to update?  Do I still need SMBUS and i2c-tools and are they still out there for this version (3.11?) of python?

Pointers to any setups or previous info would be appreciated.  I looked but not too much on the older LCD type displays.  I know its quite a leap from 3 to 9 versions so trying to avoid missing the simple way to do things!

Any help appreciated.
Reply


Messages In This Thread
I2C LCD display? differences from old 3.8? - by lcipher3 - 12-11-2024, 08:40 PM

Forum Jump: