Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Yet another OLED Driver!
#7
Looking for some advice for this driver/display...
I have a 128x64 sh1106 oled and have configured as per the example...adjusted for my display


Code:
#from luma.core.interface.serial import spi
from luma.core.interface.serial import i2c
from luma.core.render import canvas
from luma.oled.device import sh1106
import RPi.GPIO as GPIO
#serial = spi(port=0, device=0, gpio_DC=27, gpio_RST=24)
serial = i2c(port=1, address=0x3d)
device = sh1106(serial, rotate=0)


the display works as shown in attached image so basic configuration is correct...

However, I am no coder so other parts of the code are giving me trouble...
I use a USB dac so the current code throws this error...when I run     python moode_oled_1.54_spi_audiophonics.py with no audio playing... as the device it wants is the i2s or spdif of the audiophonics dac..... 

Code:
amixer: Unable to find simple control 'I2S/SPDIF Select',0
This repeats for some time then the display blanks and this error appears...
Code:
(<class 'luma.core.error.DeviceNotFoundError'>, 'moode_oled_1.54_spi_audiophonics.py', 444)

If I start the python code and begin play from MoOde the oled shows briefly some song info then blanks with this error
Code:
(<type 'exceptions.IOError'>, 'moode_oled_1.54_spi_audiophonics.py', 275)
I know the errors reference the lines from the code but have no idea what to change...
Any help would be appreciated, thanks


Attached Files Thumbnail(s)
   
----------
bob
Reply


Messages In This Thread
Yet another OLED Driver! - by superpat - 12-20-2018, 05:47 PM
RE: Yet another OLED Driver! - by remy1961 - 12-21-2018, 06:21 PM
RE: Yet another OLED Driver! - by ear5142 - 12-22-2018, 10:26 AM
RE: Yet another OLED Driver! - by remy1961 - 12-22-2018, 07:43 PM
RE: Yet another OLED Driver! - by remy1961 - 12-22-2018, 11:01 PM
RE: Yet another OLED Driver! - by superpat - 12-23-2018, 10:01 AM
RE: Yet another OLED Driver! - by DRONE7 - 01-27-2019, 07:51 PM

Forum Jump: