pinmux
Note that many pin functions of the Duo series are multiplexed. When using applications (such as wiringX, pinpong) to control the functions of each pin, it is important to confirm the current state of the pin to ensure it matches the desired functionality. If it doesn't, you can use the duo-pinmux command to switch it to the desired function.
The pin names for Duo and Duo256M
For Duo pin multiplexing function, please refer to: Duo GPIO Pinout
For Duo256M pin multiplexing function, please refer to: Duo256M GPIO Pinout
| PIN NAME | Pin# | Pin# | PIN NAME |
|---|---|---|---|
| GP0 | 1 | 40 | VBUS |
| GP1 | 2 | 39 | VSYS |
| GND | 3 | 38 | GND |
| GP2 | 4 | 37 | 3V3_EN |
| GP3 | 5 | 36 | 3V3(OUT) |
| GP4 | 6 | 35 | |
| GP5 | 7 | 34 | |
| GND | 8 | 33 | GND |
| GP6 | 9 | 32 | GP27 |
| GP7 | 10 | 31 | GP26 |
| GP8 | 11 | 30 | RUN |
| GP9 | 12 | 29 | GP22 |
| GND | 13 | 28 | GND |
| GP10 | 14 | 27 | GP21 |
| GP11 | 15 | 26 | GP20 |
| GP12 | 16 | 25 | GP19 |
| GP13 | 17 | 24 | GP18 |
| GND | 18 | 23 | GND |
| GP14 | 19 | 22 | GP17 |
| GP15 | 20 | 21 | GP16 |
| GP25 | LED |
The pin names for DuoS
For DuoS pin multiplexing function, please refer to: DuoS GPIO Pinout
Header J3
GPIO on Header J3 use 3.3V logic levels.
| PIN NAME | PIN# | PIN# | PIN NAME |
|---|---|---|---|
| 3V3 | 1 | 2 | VSYS(5V) |
| B20 | 3 | 4 | VSYS(5V) |
| B21 | 5 | 6 | GND |
| B18 | 7 | 8 | A16 |
| GND* | 9 | 10 | A17 |
| B11 | 11 | 12 | B19 |
| B12 | 13 | 14 | GND |
| B22 | 15 | 16 | A20 |
| 3V3 | 17 | 18 | A19 |
| B13 | 19 | 20 | GND |
| B14 | 21 | 22 | A18 |
| B15 | 23 | 24 | B16 |
| GND | 25 | 26 | A28 |
GND*: Pin 9 is a low-level GPIO in the V1.1 version of the hardware, and is GND in the V1.2 version and later.