1 \documentclass[12pt,a4paper]{article}
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}
18 \renewcommand{\familydefault}{\sfdefault}
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}
39 \bfseries{WiringPi: GPIO Pin Numbering Tables}\\
40 \tt{http://wiringpi.com/}
44 \begin{tabular}{|c|c|c||p{8mm}|p{8mm}||c|c|c|c|}
46 \multicolumn{8}{|c|}{\bfseries{P1: The Main GPIO connector}}\\
49 WiringPi Pin & BCM GPIO & Name & \multicolumn{2}{|c||}{Header} & Name & BCM GPIO & WiringPi Pin\\
52 & & \textcolor{rtb-red}{3.3v} & \raggedleft{1} & 2 & \textcolor{rtb-maroon}{5v} & & \\
54 8 & Rv1:0 - Rv2:2 & \textcolor{rtb-aqua}{SDA} & \raggedleft{3} & 4 & \textcolor{rtb-maroon}{5v} & & \\
56 9 & Rv1:1 - Rv2:3 & \textcolor{rtb-aqua}{SCL} & \raggedleft{5} & 6 & \textcolor{rtb-black}{0v} & & \\
58 7 & 4 & \textcolor{rtb-green}{GPIO7} & \raggedleft{7} & 8 & \textcolor{rtb-yellow}{TxD} & 14 & 15\\
60 & & \textcolor{rtb-black}{0v} & \raggedleft{9} & 10 & \textcolor{rtb-yellow}{RxD} & 15 & 16\\
62 0 & 17 & \textcolor{rtb-green}{GPIO0} & \raggedleft{11} & 12 & \textcolor{rtb-green}{GPIO1} & 18 & 1\\
64 2 & Rv1:21 - Rv2:27 & \textcolor{rtb-green}{GPIO2} & \raggedleft{13} & 14 & \textcolor{rtb-black}{0v} & & \\
66 3 & 22 & \textcolor{rtb-green}{GPIO3} & \raggedleft{15} & 16 & \textcolor{rtb-green}{GPIO4} & 23 & 4\\
68 & & \textcolor{rtb-red}{3.3v} & \raggedleft{17} & 18 & \textcolor{rtb-green}{GPIO5} & 24 & 5\\
70 12 & 10 & \textcolor{rtb-teal}{MOSI} & \raggedleft{19} & 20 & \textcolor{rtb-black}{0v} & & \\
72 13 & 9 & \textcolor{rtb-teal}{MISO} & \raggedleft{21} & 22 & \textcolor{rtb-green}{GPIO6} & 25 & 6\\
74 14 & 11 & \textcolor{rtb-teal}{SCLK} & \raggedleft{23} & 24 & \textcolor{rtb-teal}{CE0} & 8 & 10\\
76 & & \textcolor{rtb-black}{0v} & \raggedleft{25} & 26 & \textcolor{rtb-teal}{CE1} & 7 & 11\\
79 WiringPi Pin & BCM GPIO & Name & \multicolumn{2}{|c||}{Header} & Name & BCM GPIO & WiringPi Pin\\
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
88 The revision 2 Raspberry Pi has an additional GPIO connector, P5, which is next to the main P1 GPIO
92 \begin{tabular}{|c|c|c||p{8mm}|p{8mm}||c|c|c|c|}
94 \multicolumn{8}{|c|}{\bfseries{P5: Secondary GPIO connector (Rev. 2 Pi only)}}\\
97 WiringPi Pin & BCM GPIO & Name & \multicolumn{2}{|c||}{Header} & Name & BCM GPIO & WiringPi Pin\\
100 & & \textcolor{rtb-maroon}{5v} & \raggedleft{1} & 2 & \textcolor{rtb-red}{3.3v} & & \\
102 17 & 28 & \textcolor{rtb-green}{GPIO8} & \raggedleft{3} & 4 & \textcolor{rtb-green}{GPIO9} & 29 & 18 \\
104 19 & 30 & \textcolor{rtb-green}{GPIO10} & \raggedleft{5} & 6 & \textcolor{rtb-green}{GPIO11} & 31 & 20 \\
106 & & \textcolor{rtb-black}{0v} & \raggedleft{7} & 8 & \textcolor{rtb-black}{0v} & & \\
109 WiringPi Pin & BCM GPIO & Name & \multicolumn{2}{|c||}{Header} & Name & BCM GPIO & WiringPi Pin\\