Using a Raspberry Pi 3B+ with
Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
I would like to drive an LED with pwm.
There are two couples of GPIO pins which also support pwm: according to this page, they are the physical pins 12, 32 and 33, 35.
I can list them as
# cat /sys/kernel/debug/pwm
platform/3f20c000.pwm, 2 PWM devices
pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-1 ((null) ): period: 0 ns duty: 0 ns polarity: normal
- How can I determine to which couple of pins do
pwm-0andpwm-1correspond? - To drive an LED (in series with a resistor) with
pwm, should I use both the pins of apwmcouple, for example pins 12, 32, or is it enough to use just one of them and a simplegroundpin?