Closed
Description
This library can end up throwing a ZeroDivisionError
in
Adafruit_CircuitPython_PCA9685/adafruit_pca9685.py
Lines 142 to 145 in 65f0e2c
Users who have bumped into this (and reported it):
- Adafruit Forums: RaspberryPi Stepper HAT - example code not working
- Adafruit Forums: Servo on Adafruit 16-channel PWM/Servo Hat ZeroDivisionError
- StackOverflow: Raspberry Pi - ZeroDivisionError: float division by zero - adafruit pca9685
I'm finding some of the code in the PCA9685
class a bit puzzling but I'll put another issue in for that.