Wiring of displays and pushbuttons - TomBric/stratux-radar-display GitHub Wiki

Wiring the OLED 1.5 inch display

Connection PIN# on Raspberry Cable color
VCC 17 red
GND 20 black
DIN/MOSI 19 blue
CLK/SCK 23 yellow
CS/CE0 24 orange
DC 18 green
RST 22 white

Wiring the Epaper 3.7 inch or the 1.54 inch display

Connection PIN# on Raspberry Remark
VCC 17
GND 20
DIN/MOSI 19
CLK/SCK 23
CS/CE0 24
DC 22
RST 11
BUSY 18
PWR 1 * e-Driver-Hat Rev. 2.3 only !!! optionally PIN2 *

*Important remark for e-Paper Driver Hat Waveshare 13512 Rev. 2.3: Waveshare introduced a 9-cable connection since Rev. 2.3. The additional cable PWR (red) needs to be connected to 3.3 V or 5V. So connect it to PIN#1 or PIN#2 on the Raspberry GPIO. Remark: If you have a barometric sensor or ahrs connected you may have conflict with GPIO Pin 11. You can also use PIN 16 (GPIO 23) for the RST line.

To do that please modify in /home/pi/stratux-radar-display/main/displays/Epaper_3in7/epdconfig.py:

   # RST_PIN         = 17    # if directly as hat
   RST_PIN = 23  # for cable mounted in stratux on different GPIO 23, which is PIN 16

Wiring of the pushbuttons for the user interface

Pushbutton PIN# on Raspberry
Left 37
Middle 38
Right 40

All pushbuttons are used as pull down. Connect the other side of all buttons to GND (PIN39).