05-03-2018, 06:58 AM
I Ricardo, well done! Mainly for the setup instructions that in other similar "packages" are a little bit confused (at least for me, not being definitely a Linux expert.. :-)
I started in the past days to study the similar "Raspdac_Display" packages that's based on the "pages" concept (only the main loop changes, getting information to be shown in the display from the "pages.py" file.
The most important doubt for me, is the GPIO mapping. If I take the original Winstar_GraphicOLED.py file, at the beginning there's a map of the wiring (identical to several ones that can be seen on the web), but in the code immediately after, the 4 GPIO for DB4-DB5-DB6-DB7 are different.
For Winstar WEG1xxxxxx OLED displays, I've wired it up as follows:
# OLED PN | FUNCT | GPIO | RP1 pin | Audiophonics pin
# 4 RS 25 22 26
# 5 R/W 18 12 N/A (tied to GND)
# 6 E 24 18 24
# 11 D4 23 16 22
# 12 D5 17 11 18
# 13 D6 21 13 16
# 14 D7 22 15 10
# 15 CS1 9 21 N/A
# 16 CS2 1 5 N/A
#
while this is the code:
# Pin Mappings V3
OLED_DB4=25
OLED_DB5=24
OLED_DB6=23
OLED_DB7=27
OLED_RS=7
OLED_E=8
I don't have a Sabre DAC, I'm using an HifiBerry PRO+ DAC, on which I soldered a 20x2 female connector to replicate the RPI GPIO.
I suppose that I have to use the wiring indicates in the table above, using the GPIO (logical) and RPI (physical) mapping.
Am I wrong?
thanks
Andrea
I started in the past days to study the similar "Raspdac_Display" packages that's based on the "pages" concept (only the main loop changes, getting information to be shown in the display from the "pages.py" file.
The most important doubt for me, is the GPIO mapping. If I take the original Winstar_GraphicOLED.py file, at the beginning there's a map of the wiring (identical to several ones that can be seen on the web), but in the code immediately after, the 4 GPIO for DB4-DB5-DB6-DB7 are different.
For Winstar WEG1xxxxxx OLED displays, I've wired it up as follows:
# OLED PN | FUNCT | GPIO | RP1 pin | Audiophonics pin
# 4 RS 25 22 26
# 5 R/W 18 12 N/A (tied to GND)
# 6 E 24 18 24
# 11 D4 23 16 22
# 12 D5 17 11 18
# 13 D6 21 13 16
# 14 D7 22 15 10
# 15 CS1 9 21 N/A
# 16 CS2 1 5 N/A
#
while this is the code:
# Pin Mappings V3
OLED_DB4=25
OLED_DB5=24
OLED_DB6=23
OLED_DB7=27
OLED_RS=7
OLED_E=8
I don't have a Sabre DAC, I'm using an HifiBerry PRO+ DAC, on which I soldered a 20x2 female connector to replicate the RPI GPIO.
I suppose that I have to use the wiring indicates in the table above, using the GPIO (logical) and RPI (physical) mapping.
Am I wrong?
thanks
Andrea