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?
#4
As long as i2c-40x2-lcd.py runs under python 3 you should be ok.

The LCD updater and its companion script can be used to update an LCD but you would need to figure out whats needed in the companion script. This script can't contain any while(true) loops since its being executed by an upstream system-level while (condition) process (inotifywait).

/var/www/daemon/lcd-updater.sh
Code:
#!/bin/bash
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright 2014 The moOde audio player project / Tim Curtis
#

eval "/var/local/www/commandw/lcd_updater.py"

while true; do
    inotifywait -e close_write /var/local/www/currentsong.txt
    eval "/var/local/www/commandw/lcd_updater.py"
done > /dev/null 2>&1 &
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: I2C LCD display? differences from old 3.8? - by Tim Curtis - 12-11-2024, 10:53 PM

Forum Jump: