When you use System I/O module that is GPIO
, PWM
, SPI
, I2C
, and UART
, you should know specified pin, bus or port number.
GPIO Name |
Pin Number |
GPIO Name |
Pin Number |
GPIO0 |
128 |
GPIO1 |
129 |
GPIO2 |
130 |
GPIO3 |
46 |
GPIO4 |
14 |
GPIO5 |
41 |
GPIO6 |
25 |
GPIO7 |
0 |
GPIO8 |
26 |
GPIO9 |
27 |
GPIO Name |
Pin Number |
GPIO Name |
Pin Number |
GPIO4 |
4 |
GPIO5 |
5 |
GPIO6 |
6 |
GPIO12 |
12 |
GPIO13 |
13 |
GPIO16 |
16 |
GPIO17 |
17 |
GPIO18 |
18 |
GPIO19 |
19 |
GPIO20 |
20 |
GPIO21 |
21 |
GPIO20 |
20 |
GPIO23 |
23 |
GPIO24 |
24 |
GPIO25 |
25 |
GPIO26 |
26 |
GPIO27 |
27 |
- |
- |
PWM Name |
Pin Number |
PWM0 |
2 |
SPI Name |
Bus Number |
Chip Select |
SPI |
2 |
0 |
SPI Name |
Bus Number |
Chip Select |
SPI0(CS0) |
0 |
0 |
SPI0(CS1) |
0 |
1 |
I2C Name |
Bus Number |
I2C |
1 |
I2C Name |
Bus Number |
I2C |
1 |
UART Name |
Port Number |
UART0 |
4 |
UART Name |
Port Number |
UART0 |
0 |