mpd_oled - OLED status and spectrum display for Raspberry Pi

Build/modify/repair equipment and improve systems performance by yourself

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby Ripa » 15 Dec 2018, 11:12

Ripa
 
Posts: 67
Joined: 04 Dec 2017, 03:55

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby adrii » 08 May 2019, 15:34

Hi Ripa

Sorry for not replying sooner! (I didn't get the notification about new messages).

Your screenshot doesn't include the error message, but I imagine it says that the compiler cannot build executables.

When I last tried RuneAudio I was unable to install a working build environment for C++ on my Raspberry Pi Zero W, and could therefore no longer build mpd_oled on it. See raspberry-pi-zero-support-in-0-4-t3711-130.html#p25376

I don't know what the current sitution is.

If you are still looking for help, and the error is something other than the compiler not working, then please post some more details and I will see if I can help.

Adrian.

P.S. If anyone posts a message for me here and I don't reply then I haven't seen the message. If you send an email to adrian@antiprism.com then I will check the thread and reply.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby adrii » 09 May 2019, 09:31

I had another go with the latest 0.5 beta 20180903_10_runeaudio_rpib1.img.gz , which I updated with the gitpull button.

I was unable to get a working C++ build environment.

Trying to install packages with "pacman -S" produces - error: failed retrieving file 'libatomic_ops-7.6.8-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404.

Trying to install packages with "pacman -Sy" installs packages with library mismatches. For example, m4 will not run and prints an error that it could not find a library of a particular version.

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby Mat » 21 May 2019, 09:01

Attachments
2019-05-21_094624.png
2019-05-21_094624.png (28.95 KiB) Viewed 6298 times
2019-05-21_094423.png
2019-05-21_094423.png (2.83 KiB) Viewed 6298 times
Mat
 
Posts: 21
Joined: 01 Jul 2015, 12:19

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby adrii » 21 May 2019, 15:58

User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby adrii » 22 May 2019, 08:20

I have updated the mpd_oled repository with the new instructions

https://github.com/antiprism/mpd_oled/b ... NEAUDIO.md

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby Mat » 24 May 2019, 15:00

Great Andii. Thanks for info about runeaudio.php, I didn't go so deep :)

I would like to ask you for an advice about c++. I havent seen c++ for a while, so basically no direct knowlegde about it but I understand how it works and I am familiar with other languages.

I can see that there is endless loop in main.cpp from which "draw_display" method is called. It reads data from mpd.

Now, I would like to add some kind of interrupts for displaying notifications. Like global variable which I can change from outside that program. I do not like to operate runeaudio with smartphone so I have a lot of commands on IR remote. For example loading different playlists, initiate shut down, etc. It would be great If I could display a short message on OLED screen when some action is made. Examples: "Playlist 01 loaded", "Radio stations loaded", "Shutting down in progress", ...

I would be thankful to hear what would be your approach to push "notifications" to infinite loop in main.cpp? What would be best solution for communication? I know that I could write message to file and check the file system from c++ but this is pretty nasty solution. If there was some kind of buffer or variable in mpd that would be probbably the correct way. So writing to buffer on one side and read/clean buffer on other side. But I do not know where to store that message. Maybe some other interrupts?

If you can give me some advice I would be thankful. Anyway thanks for mpd_oled program and instructions.

Regards, Mat
Mat
 
Posts: 21
Joined: 01 Jul 2015, 12:19

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby adrii » 25 May 2019, 08:31

Hi Mat

What you are asking about sounds like a valuable addition to mpd_oled, and I will consider adding it when I look at developing the program again (I don't know when that will be). Given the requirements of the notification system, a named pipe (FIFO) is probably a reasonable way to go. The pipe would be opened for reading by mpd_oled, and other programs written in any language could write notifications to it (effectively what you were suggesting with a file, but using a pipe instead). You probably want some kind of notification format so that you know how much data to read from the pipe (maybe also extra fields like, time to display a notification, emphasis for particular notifications, etc). Then, add a function to display notifications, and check the notifcation pipe in the main loop. There may be an issue with spectrum data getting out of phase if a notification comes in while audio is playing, I am not sure.

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby davidevinavil » 10 Jan 2021, 12:59

Hello. I'm on 0.3 runeaudio for odroid C1. I'm not able to get a working compiler. There's a solution? Also can't find a newer version for odroid C1
davidevinavil
 
Posts: 2
Joined: 02 Feb 2016, 08:34

Re: mpd_oled - OLED status and spectrum display for Raspberr

Postby adrii » 10 Jan 2021, 13:27

Hi davidevinavil

These are the older install instructions for Rune, which might help for installing the extra packages.

https://github.com/antiprism/mpd_oled/b ... NEAUDIO.md

I can't remember if I was using 0.3 at the time, but as I recall GCC didn't produce working binaries but Clang did.

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

support RuneAudio Donate with PayPal

Previous

Return to DIY and tweaks

Who is online

Users browsing this forum: No registered users and 1 guest
cron