forked from DhrBaksteen/ArduinoOPL2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnecting_opl3duo
executable file
·27 lines (25 loc) · 1.15 KB
/
connecting_opl3duo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
if ! type "gpio" > /dev/null
then
echo "WiringPi was not found!"
echo "Please run the build script to install the OPL2 library first."
echo ""
exit
fi
echo ""
echo "Connect the OPL3 Duo! to your Raspberry Pi like this:"
echo ""
echo "+-----------+------+"
echo "| OPL3 Duo! | GPIO |"
echo "+-----------+------+"
echo "| +3.3v |\033[1m 1 \033[0m|\t GPIO header connection:"
echo "| GND |\033[1m 6 \033[0m|"
echo "| A2 |\033[1m 22 \033[0m|\t \033[1;32m|\033[0m"
echo "| A1 |\033[1m 18 \033[0m|\t ...\033[1m 5 3 1 \033[1;32m|\033[0m"
echo "| A0 |\033[1m 16 \033[0m|\t -----------+ \033[1;32m|\033[0m"
echo "| MOSI |\033[1m 19 \033[0m|\t \033[1;33m o o o o o \033[0m| \033[1;32m|\033[0m"
echo "| SCK |\033[1m 23 \033[0m|\t \033[1;33m o o o o o o \033[0m| \033[1;32m|\033[0m"
echo "| /WR |\033[1m 15 \033[0m|\t -------------+ \033[1;32m|\033[0m"
echo "| /IC |\033[1m 13 \033[0m|\t ...\033[1m 6 4 2 \033[1;32m|\033[0m <-- Raspberry Pi"
echo "+-----------+------+\t \033[1;32m------------------'\033[0m board edge"
echo ""