[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 - JohnnyBravo - 09-02-2019 Thanks for taking the time to look into this Adrian! P.S. Changing the i2c baudrate to 800000 fixed my lagging screen, it works beautifully now :-) RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Tim Curtis - 09-02-2019 (09-02-2019, 04:56 PM)adrii Wrote: Hi JB and Tim Hi Adrian, It either contains information from MPD or it contains the two lines indicating which renderer is active and what the output rate is. In addition to MPD information the file also contains the URL to the cover image or radio logo. This comes from moOde code. Currently I'm not carrying track length or progress but certainly could consider it. Track progress would have a 3 second granularity because the file gets updated in moOde's worker.php job loop which polls every 3 secs. -Tim RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 09-06-2019 Hi Tim Thanks for the extra information on the current song file, and also for the offer to include track length and progress. In the end, I won't be using the file for detailed song information, and will continue to query MPD as I do now. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - JohnnyBravo - 09-14-2019 (09-06-2019, 07:11 AM)adrii Wrote: ... Does this mean it won't be possible to display "Spotify Active" or "Airplay Active" or can that still be done? Thanks, JB RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 09-14-2019 Hi JB I will read the current song file to extract the alternative renderer name and display it, I just won't be using the file for detailed song information. I imagine the logic will be: Query MPD: If "play"/"pause" MPD being used, state is "play"/"pause", display detailled song information else read current song file if file opened and renderer name is read state is "play", display renderer name else state is "stop" I also need to make sure that the curent song file isn't opened too frequently. I can't give a time for adding it in, but it seems like a smallish change. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - JohnnyBravo - 09-15-2019 I see, thanks very much for the update. I really appreciate your efforts Adrian, huge thanks for that :-) JB RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 09-22-2019 Hi JB I have pushed an update to show the alternative renderer name. The final decision logic is: Query MPD: If "play"/"pause" MPD being used, state is "play"/"pause", display detailled song information else read current song file if file opened, and renderer name is read, and state value is not present or is not read as "stop" state is "play", display renderer name else state is "stop" I have only tested using the Bluetooth renderer. mpd_oled MUST be built with 'PLAYER=MOODE make' for the new code to be triggered. In other words, it works when built on Moode 6. For Moode 5 it should still be possible to build with 'PLAYER=MOODE make' if you edit the mpd_oled Makefile and change Code: else ifeq ($(PLAYER),MOODE) Code: else ifeq ($(PLAYER),MOODE) Please let me know if you come across any issues! Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - JohnnyBravo - 09-23-2019 Hi Adrian, I've tested on Moode 6.2.1 and it works perfectly! I have tested both Spotify and Airplay and both are ok. Many thanks! JB RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 09-23-2019 Hi JB Great! Thanks for letting me know, Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - rndce - 10-14-2019 pi@moode:~/mpd_oled $ PLAYER=MOODE make g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o main.o main.cpp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o timer.o timer.cpp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o status.o status.c pp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o status_msg.o stat us_msg.cpp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o utils.o utils.cpp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o display.o display .cpp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o programopts.o pro gramopts.cpp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o ultragetopt.o ult ragetopt.cpp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o ArduiPi_OLED.o Ar duiPi_OLED.cpp g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o Adafruit_GFX.o Ad afruit_GFX.cpp cc -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o bcm2835.o bcm2835. c g++ -o mpd_oled main.o timer.o status.o status_msg.o utils.o display.o programopts.o ultragetopt.o ArduiPi_OLED.o Ad afruit_GFX.o bcm2835.o -lmpdclient -lpthread -li2c /usr/bin/ld: cannot find -li2c collect2: error: ld returned 1 exit status Makefile:30: recipe for target 'mpd_oled' failed make: *** [mpd_oled] Error 1 I used MoOde 4.3, when i command "PLAYER=MOODE make" IT's show this error as above. Please help me to fixed this error. |