I am having trouble doing the "light" test in the adafruit guide 1. The first one, the on off light, works fine. However, I am having trouble defining a jack. When I create it I get:
{"error":"Failed to update. Error: write /sys/class/pwm/pwmchip0/pwm0/period: invalid argument"} | HTTP 500
Checking the error log after trying to create the light as described in the tutorial I have:
Apr 12 10:45:19 reefpi reef-pi[334]: 2019/04/12 10:45:19 health check: Used memory: 10.44 Load5: 0.21
Apr 12 10:45:49 reefpi reef-pi[334]: 2019/04/12 10:45:49 lighting-subsystem: Setting PWM value: 48 at channel: 0
Apr 12 10:45:49 reefpi reef-pi[334]: 2019/04/12 10:45:49 Setting pwm driver: rpi pin: 0 value: 48
Apr 12 10:45:49 reefpi reef-pi[334]: 2019/04/12 10:45:49 ERROR: lighting-subsystem: Failed to set pwm value. Error: write /sys/class/pwm/pwmchip0/pwm0/duty_cycle: invalid argument
This pi came off a pi-cluster I was using for a distributed computing project so to troubleshoot I flashed it and ran through a clean install using the directions here:
https://reef-pi.github.io/general-guides/install/
There are a few slightly different versions of the install floating around. Perhaps I am missing something? And yes, I did add
dtoverlay=pwm-2chan
to the config.txt.
This is with reef-pi 2.3
One thing that was different.. the adafruit has me enabling 1-wire while the above did not. It does not have an effect on my current problem either way.
Thanks for your insight!