Page 10 of 14

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 24 Apr 2016, 14:58
by rikardo1979
hondagx35 wrote:Hi Rikardo,

- where did you save the script?
- did you rename it?
- did you change the service file?
- what is the output from:
Code: Select all
python /path-to-script/oled.py
?

Frank

- /usr/local/bin
- yes
- not sure what you mean by this

OP2

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 24 Apr 2016, 16:34
by ingohz
Rikardo,
I don't have an LCD/OLED attached to my Raspi, but the modified script should work. You may try the following and post back the output of the last commands. If the last command doesn't put any output you may remove the "#" in line 221 in front of the print command. Then everything put to the oled is also printed on the screen.

Code: Select all
systemctl stop oled.service


Backup your old /usr/local/bin/16x2_oled_runeaudio.py and copy the attached oled.py to /usr/local/bin/16x2_oled_runeaudio.py

Now post the output of the follwing commands:
Code: Select all
ls -l /usr/local/bin/16x2_oled_runeaudio.py
/usr/bin/python /usr/local/bin/16x2_oled_runeaudio.py

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 24 Apr 2016, 18:13
by rikardo1979
ingohz wrote:
Now post the output of the follwing commands:
Code: Select all
ls -l /usr/local/bin/16x2_oled_runeaudio.py
/usr/bin/python /usr/local/bin/16x2_oled_runeaudio.py

Code: Select all
[root@runeaudio ~]# systemctl stop oled.service
[root@runeaudio ~]# ls -l /usr/local/bin/16x2_oled_runeaudio.py
-rwxr-xr-x 1 root root 6362 Apr 24 13:35 /usr/local/bin/16x2_oled_runeaudio.py
[root@runeaudio ~]# /usr/bin/python /usr/local/bin/16x2_oled_runeaudio.py
/usr/local/bin/16x2_oled_runeaudio.py:68: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(LCD_E, GPIO.OUT)  # E
/usr/local/bin/16x2_oled_runeaudio.py:69: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(LCD_RS, GPIO.OUT) # RS
/usr/local/bin/16x2_oled_runeaudio.py:70: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(LCD_D4, GPIO.OUT) # DB4
/usr/local/bin/16x2_oled_runeaudio.py:71: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(LCD_D5, GPIO.OUT) # DB5
/usr/local/bin/16x2_oled_runeaudio.py:72: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(LCD_D6, GPIO.OUT) # DB6
/usr/local/bin/16x2_oled_runeaudio.py:73: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(LCD_D7, GPIO.OUT) # DB7

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 24 Apr 2016, 19:22
by ingohz
Rikardo,

there must be another OLED-Script running on your Raspi. So the ports are already in use as the output says. You could disable the oled service for the moment with
Code: Select all
systemctl disable oled.service

then reboot and try again
Code: Select all
/usr/bin/python /usr/local/bin/16x2_oled_runeaudio.py

Later you can enable the service again for autostart with
Code: Select all
systemctl enable oled.service

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 24 Apr 2016, 20:37
by rikardo1979
tried again

I had to uncoment that print line otherwise I had hang terminal. But than

Code: Select all
[root@runeaudio ~]# /usr/bin/python /usr/local/bin/16x2_oled_runeaudio.py
^C[root@runeaudio ~]# /usr/bin/python /usr/local/bin/16x2_oled_runeaudio.py
  File "/usr/local/bin/16x2_oled_runeaudio.py", line 223
    message = message.center(LCD_WIDTH," ")
                                          ^
IndentationError: unindent does not match any outer indentation level

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 24 Apr 2016, 20:51
by ingohz
the print line has to begin in column 3. Otherwise you have a wrong indentation level. At your first try there was no output on the oled?

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 25 Apr 2016, 00:14
by rikardo1979
There is one thing I really hate, and that is digging into code :)
So I think I just keep what Frank made

But thanks for your effort

OP2

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 25 Apr 2016, 16:38
by rikardo1979
Here is a great how to guide from @dhrone on github

https://github.com/dhrone/Raspdac-Display

Works like a charm

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 25 Apr 2016, 21:43
by rikardo1979
working OLED


Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 25 Apr 2016, 22:03
by hondagx35
Hi Rikardo,

happy to here that it works now.

A bit disappointed that users have to fix the stuff :(
Raspdac-Display
An alternate display program for the Raspdac from Audiophonics which uses a Winstar OLED 16x2 display


Frank