A little while ago, I did some work to get the second OLED screen on my Audiophonics EvoSabre working with PCP. I ended up with several people using it and some using it with different dacs and displays. It dawned on me that the original project was really just displaying track/now playing etc. info on an OLED device on PCP, and some separate config steps specific to the EvoSabre. So, I've split them apart into 2 separate things.
So, for anyone interested, I've posted a script, extensions etc. to add OLED output to PCP to my repo at https://github.com/peteS-UK/EvoSabre-DAC-PCP Instructions are there in the readme, but basically you should just be able to download and execute a script to install it all on a fresh PCP image.
It's in Python so there's no fancy animations etc., but it includes ....
It's pretty much rewritten since the original version which I adapted from the (very) old files from audiophonics, so no doubt there will be some glitches, but hopefully it's useful for others as well.
Let me know if you have any questions or suggestions. As I say in the readme, in theory, it should work with any SPI connected OLED for which there's support in luma.oled, but you'll likely need to create a section in the config file to give the locations and sizes to match the screen layout. It should also be possible to add I2C support if anyone feels like trying it.
pete S
So, for anyone interested, I've posted a script, extensions etc. to add OLED output to PCP to my repo at https://github.com/peteS-UK/EvoSabre-DAC-PCP Instructions are there in the readme, but basically you should just be able to download and execute a script to install it all on a fresh PCP image.
It's in Python so there's no fancy animations etc., but it includes ....
- Alternate between Title/Track-Info and Artist/Album when playing, with automatic scrolling when required
- Auto discover LMS IP and player MAC address
- Use combination of subscription for state changes (power, play etc.) and jsonrpc polling when playing, with separate backup polling in case subscription doesn't update
- Font sizes, text locations etc. are configurable in external .cfg file
- Potential support for any device supported by luma.oled
- Auto switching between day and night contrast, with contrast levels defined in external .cfg
- Separate screen saver contrast setting, with screen saver contrast and screen saver delay in external .cfg
- Display clock when player is stopped or off
It's pretty much rewritten since the original version which I adapted from the (very) old files from audiophonics, so no doubt there will be some glitches, but hopefully it's useful for others as well.
Let me know if you have any questions or suggestions. As I say in the readme, in theory, it should work with any SPI connected OLED for which there's support in luma.oled, but you'll likely need to create a section in the config file to give the locations and sizes to match the screen layout. It should also be possible to add I2C support if anyone feels like trying it.
pete S