Comments (5)
Hi Rikardo
I recently updated mpd_oled to make it compatible with moOde 5.0.
Regarding the display, SPI isn't well supported and involves modifying the mpd_oled source to include the configuration, specifically the init_display function in display.cpp. Also, I cannot confirm that other changes won't be needed as I have had no feedback from anyone that has used mpd_oled with SPI. If the display can also work with i2c then that would be a better option.
The controller chip also needs to be supported by mpd_oled, and should be SSD1306 or SH1106, so it might be an idea to check that first.
Adrian.
from mpd_oled.
Thanks for your reply here. I do have the display working on moOde like this http://tinyw.in/rCv2
I will take it a part and find more details about it
from mpd_oled.
Looking at the configuration file from the OLED package referenced in your link, you have
from luma.oled.device import ssd1306
import RPi.GPIO as GPIO
serial = spi(port=0, device=0, gpio_DC=27, gpio_RST=24)
device = ssd1306(serial, rotate=2)
In which case...
In main.cpp, add a line near the beginning of the main function to override whatever OLED you set with -o, which should then ensure SPI initialisation for your display
OledOpts opts;
opts.process_command_line(argc, argv);
opts.oled = OLED_ADAFRUIT_SPI_128x64; // ADD THIS LINE
In display.cpp, add the SPI configuration
bool init_display(ArduiPi_OLED &display, int oled, unsigned char i2c_addr,
int reset_gpio, bool rotate180)
{
// SPI
if (display.oled_is_spi_proto(oled)) {
// SPI change parameters to fit to your LCD
if ( !display.init(27, 24, OLED_SPI_CS, oled) ) // INCLUDE THESE SETTINGS
return false;
}
I am not sure if OLED_SPI_CS will need changing.
I haven't built these changes, so they may include syntax errors. Also, even with the correct initialisation there may be other changes required to get this display working.
Adrian.
from mpd_oled.
Maybe your OLED isn't connected like the original configuration in the OLED package, as is the case in this message: http://moodeaudio.org/forum/showthread.php?tid=664&pid=9235#pid9235
In which case, edit the display.init() function cal according to your configuration (the first argument is the DC GPIO number, and the second is the RESET GPIO number).
from mpd_oled.
Closing. Reopen if the issue remains.
from mpd_oled.
Related Issues (20)
- Volumio 2.878, 2.882 - installation from source fail HOT 8
- MoOde - ALSA loopback - SoX HOT 24
- hello how it use with mic without player HOT 35
- Volume - % HOT 2
- Mod main.cpp HOT 3
- Really solved? still have issue HOT 3
- Feature Request turned Bug: Prevent OLED Burn-In - Turn off display or screensaver after idle period HOT 5
- MPD OLED for Raspberry Pi VOLUMIO 3.0? HOT 37
- Display freezes on playback start (moOde 8.1.2) HOT 11
- Mpd_oled on a 128x64 RGB matrix HOT 3
- cp: cannot stat '/var/local/www/currentsong.txt': No such file or directory HOT 28
- Some potentially useful tips for defining the mpd_oled service for Volumio HOT 4
- 128x32 Monochrome OLED HOT 2
- Improve framerate by changing image data transmission HOT 2
- Unable to use hifiberry digi pro DAC with mpdoled HOT 13
- Option for showing Spectrum analyser only, when mpd is playing HOT 2
- Russian song titles are not displayed HOT 4
- MPD_oled over MoOde audio rel 8.3.2 HOT 17
- A mpd_oled is crashing in idle/clock mode after switching to 64bit. HOT 8
- Not an issuse but some things for Raps p4 64bit raspbain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpd_oled.