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?
#9
Ah got it - it's just using currentsong.txt and showing an example.

>>why copy a file line by line
because you would need to process the currentsong.txt line by line to extract whatever you want to display, so read a line, strip whitespace, the = sign, fix "special characters" like ã etc depending on your display, etc

For my 2x40 display I just use the artist (album) and title. And I check "state" to display if stopped, pause, etd

The currentsong.txt looks like this:
Code:
file=USB/Elements/John Coltrane/Atlantic Recordings/disc4/4-01 Village Blues.flac
artist=John Coltrane
album=The Heavyweight Champion: The Complete Atlantic Recordings
title=Village Blues
coverurl=/coverart.php/USB%2FElements%2FJohn%20Coltrane%2FAtlantic%20Recordings%2Fdisc4%2F4-01%20Village%20Blues.flac
track=1
date=199500
composer=
encoded=FLAC 16/44.1 kHz, 2ch
bitrate=791 kbps
outrate=PCM 24/44.1 kHz, 2ch
volume=0
mute=0
state=play
Reply


Messages In This Thread
RE: I2C LCD display? differences from old 3.8? - by lcipher3 - 12-13-2024, 05:33 PM

Forum Jump: