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.


OLED or LCD 16x2 Display (with I2C)?
#1
Hi, I made some work this weekend, mainly finishing the wooden case.
On software side, I completed the python code to get info from MPD :
1) playing track, author, elapsed time and freq in Khz
2) Radio name and track when Web Radio is played
3) IP address and datetime when the system doesn't playing anything
4) During start-up and shutdown, "welcome" and "bye" messages are shown 

Well, is more or less completed, waiting to work with a real display wired to the RPi (now, for testing purpose, the output is printed on the console).

I'm start to search the equivalent piece of code for a 16x2 OLED Display (using also I2C interface, of course). But in this case, the code seems to be more complex. I found a python fragment to drive Winstar OLED display, composed by a kind of OLED driver, a "page.py" piece of code and a "raspidac.py" main program....
The problems for me are (mainly for my poor knowledge of Linux systems....):
1 ) How can I download the right packages , and from which location 
2) What's the meaning of the "page.py" code?
3) There are sections in the "driver" code, for managing RuneAudio, Spotify, LMS. Can I remove them to make the code simpler?
4) Is there a step-by-step walkthrough about that? I've searched but didn't find anything.....
5) The code does'nt contain the I2C part....it suppose to manage the display directly from the GPIO.....

And last but no least, is the OLED solution really better than the LCD one?

thanks, and apologize for the (probably) clearness....

Andrea
Reply


Messages In This Thread
OLED or LCD 16x2 Display (with I2C)? - by mancio61 - 04-15-2018, 09:50 PM

Forum Jump: