Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pins.tex 4.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. \begin{center}
  38. \bfseries{WiringPi: GPIO Pin Numbering Tables}\\
  39. \tt{http://wiringpi.com/}
  40. \end{center}
  41. \begin{center}
  42. \begin{tabular}{|c|c|c||p{8mm}|p{8mm}||c|c|c|c|}
  43. \hline
  44. \multicolumn{8}{|c|}{\bfseries{P1: The Main GPIO connector}}\\
  45. \hline
  46. \hline
  47. WiringPi Pin & BCM GPIO & Name & \multicolumn{2}{|c||}{Header} & Name & BCM GPIO & WiringPi Pin\\
  48. \hline
  49. \hline
  50. & & \textcolor{rtb-red}{3.3v} & \raggedleft{1} & 2 & \textcolor{rtb-maroon}{5v} & & \\
  51. \hline
  52. 8 & Rv1:0 - Rv2:2 & \textcolor{rtb-aqua}{SDA} & \raggedleft{3} & 4 & \textcolor{rtb-maroon}{5v} & & \\
  53. \hline
  54. 9 & Rv1:1 - Rv2:3 & \textcolor{rtb-aqua}{SCL} & \raggedleft{5} & 6 & \textcolor{rtb-black}{0v} & & \\
  55. \hline
  56. 7 & 4 & \textcolor{rtb-green}{GPIO7} & \raggedleft{7} & 8 & \textcolor{rtb-yellow}{TxD} & 14 & 15\\
  57. \hline
  58. & & \textcolor{rtb-black}{0v} & \raggedleft{9} & 10 & \textcolor{rtb-yellow}{RxD} & 15 & 16\\
  59. \hline
  60. 0 & 17 & \textcolor{rtb-green}{GPIO0} & \raggedleft{11} & 12 & \textcolor{rtb-green}{GPIO1} & 18 & 1\\
  61. \hline
  62. 2 & Rv1:21 - Rv2:27 & \textcolor{rtb-green}{GPIO2} & \raggedleft{13} & 14 & \textcolor{rtb-black}{0v} & & \\
  63. \hline
  64. 3 & 22 & \textcolor{rtb-green}{GPIO3} & \raggedleft{15} & 16 & \textcolor{rtb-green}{GPIO4} & 23 & 4\\
  65. \hline
  66. & & \textcolor{rtb-red}{3.3v} & \raggedleft{17} & 18 & \textcolor{rtb-green}{GPIO5} & 24 & 5\\
  67. \hline
  68. 12 & 10 & \textcolor{rtb-teal}{MOSI} & \raggedleft{19} & 20 & \textcolor{rtb-black}{0v} & & \\
  69. \hline
  70. 13 & 9 & \textcolor{rtb-teal}{MISO} & \raggedleft{21} & 22 & \textcolor{rtb-green}{GPIO6} & 25 & 6\\
  71. \hline
  72. 14 & 11 & \textcolor{rtb-teal}{SCLK} & \raggedleft{23} & 24 & \textcolor{rtb-teal}{CE0} & 8 & 10\\
  73. \hline
  74. & & \textcolor{rtb-black}{0v} & \raggedleft{25} & 26 & \textcolor{rtb-teal}{CE1} & 7 & 11\\
  75. \hline
  76. \hline
  77. WiringPi Pin & BCM GPIO & Name & \multicolumn{2}{|c||}{Header} & Name & BCM GPIO & WiringPi Pin\\
  78. \hline
  79. \end{tabular}
  80. \end{center}
  81. Note the differences between Revision 1 and Revision 2 Raspberry
  82. Pi's. The Revision 2 is readily identifiable by the presence of the 2
  83. mounting holes.
  84. The revision 2 Raspberry Pi has an additional GPIO connector, P5, which is next to the main P1 GPIO
  85. connector:
  86. \begin{center}
  87. \begin{tabular}{|c|c|c||p{8mm}|p{8mm}||c|c|c|c|}
  88. \hline
  89. \multicolumn{8}{|c|}{\bfseries{P5: Secondary GPIO connector (Rev. 2 Pi only)}}\\
  90. \hline
  91. \hline
  92. WiringPi Pin & BCM GPIO & Name & \multicolumn{2}{|c||}{Header} & Name & BCM GPIO & WiringPi Pin\\
  93. \hline
  94. \hline
  95. & & \textcolor{rtb-maroon}{5v} & \raggedleft{1} & 2 & \textcolor{rtb-red}{3.3v} & & \\
  96. \hline
  97. 17 & 28 & \textcolor{rtb-green}{GPIO8} & \raggedleft{3} & 4 & \textcolor{rtb-green}{GPIO9} & 29 & 18 \\
  98. \hline
  99. 19 & 30 & \textcolor{rtb-green}{GPIO10} & \raggedleft{5} & 6 & \textcolor{rtb-green}{GPIO11} & 31 & 20 \\
  100. \hline
  101. & & \textcolor{rtb-black}{0v} & \raggedleft{7} & 8 & \textcolor{rtb-black}{0v} & & \\
  102. \hline
  103. \hline
  104. WiringPi Pin & BCM GPIO & Name & \multicolumn{2}{|c||}{Header} & Name & BCM GPIO & WiringPi Pin\\
  105. \hline
  106. \end{tabular}
  107. \end{center}
  108. \end{sffamily}
  109. \end{document}