[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 - Alaini93 - 12-04-2020 (12-04-2020, 03:19 PM)adrii Wrote: Hi Alain Darn forgot to rebuild. ok I just rerun install.sh but still didn't change anything. I have to go out for a while and will look at it this after noon. Thanks. Also thanks for looking in 7 update. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Alaini93 - 12-04-2020 ok it's good Now I need to resize the spectrum to fill the all screen width. I think it's in display.cpp RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Alaini93 - 12-05-2020 That's it, I got only the spectrum and bitrate to show on the small screen when playing. (all other infos are on the bigger screen) here is what I changed, if anyone cares. sudo nano /home/pi/mpd_oled/main.cpp commented out everything but draw_spectrum and draw_text (for bitrate) Spectrum height changed from 32 to 50 bitrate moved under spectrum, centered, 50,56 void draw_spect_display(ArduiPi_OLED &display, const display_info &disp_info) { const int H = 8; // character height const int W = 6; // character width draw_spectrum(display, 0, 0, SPECT_WIDTH, 50, disp_info.spect); // draw_connection(display, 128-2*W, 0, disp_info.conn); // draw_triangle_slider(display, 128-5*W, 1, 11, 6, disp_info.status.get_volume()); if (disp_info.status.get_kbitrate() > 0) draw_text(display, 50, 56, 4, disp_info.status.get_kbitrate_str()); // int clock_offset = (disp_info.clock_format < 2) ? 0 : -2; // draw_time(display, 128-10*W+clock_offset, 2*H, 2, disp_info.clock_format); // vector<double> scroll_origin(disp_info.scroll.begin()+2, // disp_info.scroll.begin()+4); // draw_text_scroll(display, 0, 4*H+4, 20, disp_info.status.get_origin(), // scroll_origin, disp_info.text_change.secs()); // vector<double> scroll_title(disp_info.scroll.begin(), // disp_info.scroll.begin()+2); // draw_text_scroll(display, 0, 6*H, 20, disp_info.status.get_title(), // scroll_title, disp_info.text_change.secs()); // draw_solid_slider(display, 0, 7*H+6, 128, 2, // 100*disp_info.status.get_progress()); } For Spectrum to show on the entire width of the screen, sudo nano /home/pi/mpd_oled/display.cpp was modified on line 47, "width" became 128. int total_bar_pixes = 128-(num_bars-1)*gap; then run Code: cd mpd_oled RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Alaini93 - 12-22-2020 hi Adrian, Do I have to run this command with Moode 7? " Code: sqlite3 /var/local/www/db/moode-sqlite3.db..... I'm not sure if it's related to the #6 installation or for all of them. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 12-22-2020 Hi Alain No, those three commands are only for Moode 6 (it should do no harm to run them on Moode 7, they are just unneeded). Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - vikozo - 12-22-2020 Hello in a first step i bought a to small 0.9" OLED Display ;-( Now i wish a bigger one and found this https://www.play-zone.ch/de/adafruit-monochrome-2-7-128x64-oled-graphic-display-module.html 128 x 64 Pixel mit SSD1325 will the SSD1325 also work? and will it work with mood 7? have a nice day vinc RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 12-22-2020 Hi vinc The SSD1325 isn't directly supported by mpd_oled, and from a quick web search I didn't see anything saying the SSD1325 is compatible with the SSD1306 or SH1106, so my guess is that it won't work with mpd_oled. For a larger display that is compatible with mpd_oled check some of the earlier messages in the thread that mention OLEDs using the SSD1309 controller, which is compatible with the SSD1306. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Alaini93 - 12-22-2020 (12-22-2020, 06:08 AM)adrii Wrote: Hi Alain Hi Adrian, I was referring to this: Now, enable the Moode metadata file Code: sqlite3 /var/local/www/db/moode-sqlite3.db "update cfg_system set value=1 where param='extmeta'" && mpc add "" RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 12-22-2020 Hi Alain That command should just enable the metadata file the same as if you did it from the Moode UI, but is more convenient if already issuing commands in a shell. If the UI is still unresponsive after restarting the PI then log back in and run 'top' to see if something is using up lots of CPU or memory. I didn't see any issues like this when installing mpd_oled on the Moode 7 release candidate on a Pi Zero. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Alaini93 - 12-22-2020 ok thanks, Here is what I get trying to pause a song playing. PC UI is locked cannot access it from phone. Every second, the spectrum moves and stops, same for text scrolling. And it looks like if I don't kill it it will stay that way. |