You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good if either the documentation reflected reality, or even better if it actually returned the endTransmission response to allow for detection of errors. This would be similarly useful for Adafruit_PWMServoDriver::writeMicroseconds and Adafruit_PWMServoDriver::setPin.
The text was updated successfully, but these errors were encountered:
Great, thanks for the speedy fix. Is there a generally preferred choice or rationale between returning a zero code on success vs. a bool indicating success or failure? E.g. Adafruit_PWMServoDriver::begin returns a bool but this returns uint?
Using ESP32 and VSCode with PlatformIO, but this issue doesn't relate to any particular board/IDE.
Adafruit_PWMServoDriver::setPWM documentation states that it returns the result from endTransmission, but in fact always returns 0.
Adafruit-PWM-Servo-Driver-Library/Adafruit_PWMServoDriver.cpp
Line 231 in 032e425
vs.
Adafruit-PWM-Servo-Driver-Library/Adafruit_PWMServoDriver.cpp
Line 252 in 032e425
It would be good if either the documentation reflected reality, or even better if it actually returned the endTransmission response to allow for detection of errors. This would be similarly useful for Adafruit_PWMServoDriver::writeMicroseconds and Adafruit_PWMServoDriver::setPin.
The text was updated successfully, but these errors were encountered: