Skip to content

Commit f25852b

Browse files
committed
Merge pull request #6 from varzac/pi3-example
Add example config for raspberry pi 3
2 parents 5dd162c + 2ce9fe2 commit f25852b

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed

examples/raspberrypi.toml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
#
2+
# Pin Map for Raspberry Pi 2/3
3+
#
4+
# This file exports all pins as GPIOs by default. If you
5+
# do not want this, you will need to override that behavior
6+
# by setting `export=false` in another toml file.
7+
#
8+
# We also do not know how you will be using various pins, so
9+
# any that are exported will be exported as inputs by unless
10+
# you override this in your own toml file.
11+
#
12+
13+
[[pins]]
14+
num = 2
15+
names = ["GPIO02", "PIN03", "SDA1"]
16+
17+
[[pins]]
18+
num = 3
19+
names = ["GPIO03", "PIN05", "SCL1"]
20+
21+
[[pins]]
22+
num = 4
23+
names = ["GPIO04", "PIN07", "GPIO_GCLK"]
24+
25+
[[pins]]
26+
num = 14
27+
names = ["GPIO14", "PIN08", "TXD0"]
28+
29+
[[pins]]
30+
num = 15
31+
names = ["GPIO15", "PIN10", "RXD0"]
32+
33+
[[pins]]
34+
num = 17
35+
names = ["GPIO17", "PIN11", "GPIO_GEN0"]
36+
37+
[[pins]]
38+
num = 18
39+
names = ["GPIO18", "PIN12", "GPIO_GEN1"]
40+
41+
[[pins]]
42+
num = 27
43+
names = ["GPIO27", "PIN13", "GPIO_GEN2"]
44+
45+
[[pins]]
46+
num = 22
47+
names = ["GPIO22", "PIN15", "GPIO_GEN3"]
48+
49+
[[pins]]
50+
num = 23
51+
names = ["GPIO23", "PIN16", "GPIO_GEN4"]
52+
53+
[[pins]]
54+
num = 24
55+
names = ["GPIO24", "PIN18", "GPIO_GEN5"]
56+
57+
[[pins]]
58+
num = 10
59+
names = ["GPIO10", "PIN19", "SPI_MOSI"]
60+
61+
[[pins]]
62+
num = 9
63+
names = ["GPIO09", "PIN21", "SPI_MISO"]
64+
65+
[[pins]]
66+
num = 25
67+
names = ["GPIO25", "PIN22", "GPIO_GEN6"]
68+
69+
[[pins]]
70+
num = 11
71+
names = ["GPIO11", "PIN23", "SPI_CLK"]
72+
73+
[[pins]]
74+
num = 8
75+
names = ["GPIO08", "PIN24", "SPI_CE0_N"]
76+
77+
[[pins]]
78+
num = 7
79+
names = ["GPIO07", "PIN26", "SPI_CE1_N"]
80+
81+
[[pins]]
82+
num = 5
83+
names = ["GPIO05", "PIN29"]
84+
85+
[[pins]]
86+
num = 6
87+
names = ["GPIO06", "PIN31"]
88+
89+
[[pins]]
90+
num = 12
91+
names = ["GPIO12", "PIN32"]
92+
93+
[[pins]]
94+
num = 13
95+
names = ["GPIO13", "PIN33"]
96+
97+
[[pins]]
98+
num = 19
99+
names = ["GPIO19", "PIN35"]
100+
101+
[[pins]]
102+
num = 16
103+
names = ["GPIO16", "PIN36"]
104+
105+
[[pins]]
106+
num = 26
107+
names = ["GPIO26", "PIN37"]
108+
109+
[[pins]]
110+
num = 20
111+
names = ["GPIO20", "PIN38"]
112+
113+
[[pins]]
114+
num = 21
115+
names = ["GPIO21", "PIN40"]

0 commit comments

Comments
 (0)