Adafruit-PWM-Servo-Driver-Library
Adafruit-PWM-Servo-Driver-Library copied to clipboard
Replaced faulty getPWM with getPWMOn and getPWMOn.
The existing getPWM implementation always returned 0. This implementation is based on the datasheet for the PCA9685 and examples found on the web. It uses two methods instead of one -- one for the range start and one for the range end. I'm currently using it in a personal project and the returned values are equal to the values I provide for setPWM.