GPIO
The same pin out as the raspberry pi.
PWM(pulse-width modulation)
The Grove PWM Port connect to GPIO/BCM pin12(PWM0) and GPIO/BCM pin13(PWM1), which is the hardware PWM pin of Raspberry Pi,
in addition, you can use all the GPIO pin as the soft PWM pin.
Note
0- All the silkscreen layer pin number besides the Grove port is the BCM pin number. The difference between BCM pins and the physical
pins please refer to
here
1- Compared with hardware PWM, the software PWM isn't so accurate and will have trouble at high frequencies.
2- The GPIO/BCM pin18 is also marked as PWM0, actually the GPIO/BCM 12 and the GPIO/BCM 18 share the same PWM channel, so they
can't set to different rate.
3- The audio jack output also uses PWM 0 and PWM 1, so you can't have audio output on that socket and use the PWMs at the same time.