On the beaglebone black, your code is looking for a path like /sys/class/pwm/pwm6/export, when the newer kernels instead expose /sys/class/pwm/pwmchip6.
Comparing your library with the adafruit bbio library, your mappings seem to be different as well.
Is there any chance you could tell me what image was on the beaglebone this stuff was tested on?
On the beaglebone black, your code is looking for a path like
/sys/class/pwm/pwm6/export, when the newer kernels instead expose/sys/class/pwm/pwmchip6.Comparing your library with the adafruit bbio library, your mappings seem to be different as well.
Is there any chance you could tell me what image was on the beaglebone this stuff was tested on?