This content has been marked as final. Show 2 replies
I like to enable low-level the pwm2 which should be on J17-pin1, here is what I do:
echo -n 2 > /sys/class/pwm/pwmchip0/export
echo -n 1 > /sys/class/pwm/pwmchip0/pwm2/enable
echo -n 1000000 > /sys/class/pwm/pwmchip0/pwm2/period
echo -n 500000 > /sys/class/pwm/pwmchip0/pwm2/duty_cycle
There is no signal on the J17-pin1, regular gpio on the same pin works fine. I tried as well the "mraa" which gives another error, however I need to learn how it can be done using low level Linux APIs.