adafruit / Adafruit_CircuitPython_PCA9685

Adafruit CircuitPython driver for PCA9685 16-channel, 12-bit PWM LED & servo driver chip.
MIT License
125 stars 64 forks source link

raise explanatory exception when trying to set channel frequency #14

Closed dhalbert closed 6 years ago

dhalbert commented 6 years ago

Gives a useful exception message when trying to set frequency of an individual channel. This might happen if the overall frequency is too low for a stepper motor, for instance. See https://github.com/adafruit/Adafruit_CircuitPython_Motor/issues/12.