chiark / gitweb /
wiringPi Version 2 - First commit (of v2)
[wiringPi.git] / pins / pins.tex
1 \documentclass[12pt,a4paper]{article}
2 \parskip 1ex
3 \parindent 0em
4 \thispagestyle{empty}
5 \pagestyle{plain}
6 \pagenumbering{arabic}
7 \setlength{\topmargin}{0pt}
8 \setlength{\headheight}{0pt}
9 \setlength{\headsep}{0pt}
10 \setlength{\topskip}{0pt}
11 \setlength{\textheight}{240mm}
12 \setlength{\footskip}{5ex}
13 \setlength{\oddsidemargin}{0pt}
14 \setlength{\evensidemargin}{0pt}
15 \setlength{\textwidth}{160mm}
16 \usepackage[dvips]{graphics,color}
17 \usepackage{helvet}
18 \renewcommand{\familydefault}{\sfdefault}
19 \begin{document}
20 \begin{sffamily}
21 \definecolor{rtb-black}{rgb}  {0.0, 0.0, 0.0}
22 \definecolor{rtb-navy}{rgb}   {0.0, 0.0, 0.5}
23 \definecolor{rtb-green}{rgb}  {0.0, 0.5, 0.0}
24 \definecolor{rtb-teal}{rgb}   {0.0, 0.5, 0.5}
25 \definecolor{rtb-maroon}{rgb} {0.5, 0.0, 0.0}
26 \definecolor{rtb-purple}{rgb} {0.5, 0.0, 0.5}
27 \definecolor{rtb-olive}{rgb}  {0.5, 0.5, 0.0}
28 \definecolor{rtb-silver}{rgb} {0.7, 0.7, 0.7}
29 \definecolor{rtb-grey}{rgb}   {0.5, 0.5, 0.5}
30 \definecolor{rtb-blue}{rgb}   {0.0, 0.0, 1.0}
31 \definecolor{rtb-lime}{rgb}   {0.0, 1.0, 0.0}
32 \definecolor{rtb-aqua}{rgb}   {0.0, 1.0, 1.0}
33 \definecolor{rtb-red}{rgb}    {1.0, 0.0, 0.0}
34 \definecolor{rtb-fuchsia}{rgb}{1.0, 0.0, 1.0}
35 \definecolor{rtb-yellow}{rgb} {1.0, 1.0, 0.0}
36 \definecolor{rtb-white}{rgb}  {1.0, 1.0, 1.0}
37
38 \begin{center}
39 \bfseries{WiringPi: GPIO Pin Numbering Tables}\\
40 \tt{http://wiringpi.com/}
41 \end{center}
42
43 \begin{center}
44 \begin{tabular}{|c|c|c||p{8mm}|p{8mm}||c|c|c|c|}
45 \hline
46 \multicolumn{8}{|c|}{\bfseries{P1: The Main GPIO connector}}\\
47 \hline
48 \hline
49 WiringPi Pin    & BCM GPIO      & Name  & \multicolumn{2}{|c||}{Header} & Name  & BCM GPIO      & WiringPi Pin\\
50 \hline
51 \hline
52         &                       & \textcolor{rtb-red}{3.3v}     & \raggedleft{1} &  2 & \textcolor{rtb-maroon}{5v}      &       & \\
53 \hline
54 8       & Rv1:0 - Rv2:2         & \textcolor{rtb-aqua}{SDA}     & \raggedleft{3} &  4 & \textcolor{rtb-maroon}{5v}      &       & \\
55 \hline
56 9       & Rv1:1 - Rv2:3         & \textcolor{rtb-aqua}{SCL}     & \raggedleft{5} &  6 & \textcolor{rtb-black}{0v}       &       & \\
57 \hline
58 7       & 4                     & \textcolor{rtb-green}{GPIO7}  & \raggedleft{7} &  8 & \textcolor{rtb-yellow}{TxD}     & 14    & 15\\
59 \hline
60         &                       & \textcolor{rtb-black}{0v}     & \raggedleft{9} & 10 & \textcolor{rtb-yellow}{RxD}     & 15    & 16\\
61 \hline
62 0       & 17                    & \textcolor{rtb-green}{GPIO0}  & \raggedleft{11} & 12 & \textcolor{rtb-green}{GPIO1}   & 18    & 1\\
63 \hline
64 2       & Rv1:21 - Rv2:27       & \textcolor{rtb-green}{GPIO2}  & \raggedleft{13} & 14 & \textcolor{rtb-black}{0v}      &       & \\
65 \hline
66 3       & 22                    & \textcolor{rtb-green}{GPIO3}  & \raggedleft{15} & 16 & \textcolor{rtb-green}{GPIO4}   & 23    & 4\\
67 \hline
68         &                       & \textcolor{rtb-red}{3.3v}     & \raggedleft{17} & 18 & \textcolor{rtb-green}{GPIO5}   & 24    & 5\\
69 \hline
70 12      & 10                    & \textcolor{rtb-teal}{MOSI}    & \raggedleft{19} & 20 & \textcolor{rtb-black}{0v}      &       & \\
71 \hline
72 13      & 9                     & \textcolor{rtb-teal}{MISO}    & \raggedleft{21} & 22 & \textcolor{rtb-green}{GPIO6}   & 25    & 6\\
73 \hline
74 14      & 11                    & \textcolor{rtb-teal}{SCLK}    & \raggedleft{23} & 24 & \textcolor{rtb-teal}{CE0}      & 8     & 10\\
75 \hline
76         &                       & \textcolor{rtb-black}{0v}     & \raggedleft{25} & 26 & \textcolor{rtb-teal}{CE1}      & 7     & 11\\
77 \hline
78 \hline
79 WiringPi Pin    & BCM GPIO      & Name  & \multicolumn{2}{|c||}{Header} & Name  & BCM GPIO      & WiringPi Pin\\
80 \hline
81 \end{tabular}
82 \end{center}
83
84 Note the differences between Revision 1 and Revision 2 Raspberry
85 Pi's. The Revision 2 is readily identifiable by the presence of the 2
86 mounting holes.
87
88 The revision 2 Raspberry Pi has an additional GPIO connector, P5, which is next to the main P1 GPIO
89 connector:
90
91 \begin{center}
92 \begin{tabular}{|c|c|c||p{8mm}|p{8mm}||c|c|c|c|}
93 \hline
94 \multicolumn{8}{|c|}{\bfseries{P5: Secondary GPIO connector (Rev. 2 Pi only)}}\\
95 \hline
96 \hline
97 WiringPi Pin    & BCM GPIO      & Name  & \multicolumn{2}{|c||}{Header} & Name  & BCM GPIO      & WiringPi Pin\\
98 \hline
99 \hline
100         &               & \textcolor{rtb-maroon}{5v}    & \raggedleft{1} &  2 & \textcolor{rtb-red}{3.3v}       &       &       \\
101 \hline
102 17      & 28            & \textcolor{rtb-green}{GPIO8}  & \raggedleft{3} &  4 & \textcolor{rtb-green}{GPIO9}    & 29    & 18    \\
103 \hline
104 19      & 30            & \textcolor{rtb-green}{GPIO10} & \raggedleft{5} &  6 & \textcolor{rtb-green}{GPIO11}   & 31    & 20    \\
105 \hline
106         &               & \textcolor{rtb-black}{0v}     & \raggedleft{7} &  8 & \textcolor{rtb-black}{0v}       &       &       \\
107 \hline
108 \hline
109 WiringPi Pin    & BCM GPIO      & Name  & \multicolumn{2}{|c||}{Header} & Name  & BCM GPIO      & WiringPi Pin\\
110 \hline
111 \end{tabular}
112 \end{center}
113
114
115 \end{sffamily}
116 \end{document}