Thank you. Now I understand how does it work. Looks like to enable it just enought to put 1 inside 'enable' file which lokated inFirst check if your dtoverlay works.but i didn`t find any new folders in /sys/class/pwm/pwmchip6 folder. Can you give an idea what should be created to check it existance?
using lsmod you should see the pwm_pca9685 module loaded!if you don't see the pwm_pac9685 in then something is wrong.Code:
daniel@Pi5:~ $ lsmod | grep pwmpwm_pca9685 49152 4regmap_i2c 49152 1 pwm_pca9685pwm_fan 49152 0daniel@Pi5:~ $
N.B. The pca9685 needs to be connected when you boot the Pi5!
"echo 0 >/sys/class/pwm/pwmchip6/export" should create the folder pwm0 , 1 will create pwm1 , etc....
Well the latest push I did, I put a delay of 500ms after exporting all pwms. that should suffice enough.
/sys/class/pwm/pwmchip6/device/pwm/pwmchip6/pwm0 folder or
/sys/class/pwm/pwmchip6/device/pwm/pwmchip6/device/pwm/pwmchip6/pwm1 folder relatively.
That was a surprise for me. Didn`t expect that folders will be located like this. Okay, it was my first experience with linux Image may be NSFW.
Clik here to view.

Statistics: Posted by jryba — Sun Mar 17, 2024 9:25 pm