- Joined
- Apr 11, 2019
- Messages
- 71
- Reaction score
- 137
if change permissions same problem:So the plot thickens..
When I try run the line provided above I got a permissions issue which really shouldn't happen with pi and sudo.
I opened it with pico using sudo and when I try to save I get:
[ Error writing /sys/class/pwm/pwmchip0/pwm0/duty_cycle: Invalid argument ]
I also tried stopping the reef-pi service and that did not help.
So something is preventing us from updating the file.
No worries at all, we appreciate the work that went into this and the ongoing support. It is the nature of Pi projects to have occasional problems!
pi@raspberrypi:/sys/class/pwm/pwmchip0/pwm0 $ sudo chmod 777 duty_cycle
pi@raspberrypi:/sys/class/pwm/pwmchip0/pwm0 $ ls
capture duty_cycle enable period polarity power uevent
pi@raspberrypi:/sys/class/pwm/pwmchip0/pwm0 $ sudo echo 10000000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
echo: write error: Invalid argument
