[How to do instruction] 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi (/showthread.php?tid=155) |
RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 06-07-2018 Hi I have just updated the repository, and the screen can now be rotated 180 degrees with "mpd_oled -R". Adrian RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - pelukessss - 06-08-2018 (06-07-2018, 08:30 PM)adrii Wrote: Hi Hi, thank you. What should I do to upgrade? Thanks RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 06-08-2018 Hi You have local changes, and so the easiest would be to clone the repository again into a new directory Code: git clone https://github.com/antiprism/mpd_oled Then, in the install instructions, skip to "Now build mpd_oled". Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - pelukessss - 06-13-2018 (06-08-2018, 04:51 PM)adrii Wrote: Hi Hi, thank you for your support! I created a new layout, I'll upload it as soon as I can. Is there a way to retrieve elapsed time / total time of a track? Thank you RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 06-13-2018 Hi Seconds: disp_info.status.get_elapsed_secs() disp_info.status.get_total_secs() HH:MM:SS: disp_info.status.get_elapsed_time() disp_info.status.get_total_time() You can see all the currently available status values here: https://github.com/antiprism/mpd_oled/blob/master/status.h Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - pelukessss - 06-13-2018 (06-13-2018, 10:28 AM)adrii Wrote: Hi Great! Thank you! RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - pelukessss - 06-27-2018 (06-13-2018, 11:21 AM)pelukessss Wrote:(06-13-2018, 10:28 AM)adrii Wrote: Hi Hi, been busy with work, I hope this weekend I'll post some updates... RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - DRONE7 - 08-15-2018 Ebay oleds went awol...3 months wait and no-show...:-( Re-ordered from another supplier and they arrived today... Tried your set up and no joy...oled does not light up...nothing ... nada... raspberry... (eat more fruit)...:-( tried..... https://github.com/naisema/MoodeAudio-OLED worked first time and oled displays fine.... but breaks Moode... can no longer access any configuration pages in UI and have to ssh in to shutdown...:-( Sad as this screen would be a perfect fit for a project. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 08-15-2018 Hi DRONE7 If you would like to troubleshoot the issue then please post the mpd_oled command line that you are trying, and a link to the display that you bought. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - TheOldPresbyope - 08-15-2018 (08-15-2018, 09:38 AM)DRONE7 Wrote: Ebay oleds went awol...3 months wait and no-show...:-( Hi, @DRONE7 I'd say your problem with the MoodeAudio-OLED repo lies in the construction of the Python script moode-oled.py moOde expects the LCD update script to execute and return. Instead, this script goes into an infinite while-loop. I don't have any LCD/OLED displays to play with. To test my thought, I followed @naisema's README to install everything (mostly to make sure the presence of the Adafruit libraries weren't the issue). Then I edited moode-oled.py so it won't try to work with the display (through the disp object) but instead writes text messages to a log file. Sure enough, as soon as it was started by moOde, it began logging output to the file every second (the loop sleeps for 1 second) and moOde could no longer process config options. The moode.log file shows the worker process is waiting. I then edited moode-oled.py to eliminate the while condition (and the now superfluous sleep function). Rebooted. et voilà moOde is happy. Candidly, this repo looks like the author was trying to explore several directions at once. For its stated purpose, the loop is just plain wrong but there are other curious bits as well. It's not complicated but if you aren't a Python aficionado who likes to tinker with other people's code, I suggest you work with @adrii to sort out your OLED display interface. You now know your OLED display is electrically functional. I'll bet he gets you sorted with his code in no time. Regards, Kent |