@@ -44,17 +44,20 @@ Adafruit_PWMServoDriverGroup::Adafruit_PWMServoDriverGroup(
44
44
}
45
45
}
46
46
47
- /* @brief Gets the number of PCA9685 PWM driver chips connected to this class
47
+ /* !
48
+ * @brief Gets the number of PCA9685 PWM driver chips connected to this class
48
49
*/
49
50
uint8_t Adafruit_PWMServoDriverGroup::getNumDrivers () { return _nDrivers; }
50
51
51
- /* @brief Gets the number of servos associated with each PCA9685 PWM chip
52
+ /* !
53
+ * @brief Gets the number of servos associated with each PCA9685 PWM chip
52
54
*/
53
55
uint8_t Adafruit_PWMServoDriverGroup::getNumServosEach () {
54
56
return _nServosEach;
55
57
}
56
58
57
- /* @brief Gets the total number of servos associated with this class
59
+ /* !
60
+ * @brief Gets the total number of servos associated with this class
58
61
*/
59
62
uint8_t Adafruit_PWMServoDriverGroup::getNumServos () {
60
63
return _nDrivers * _nServosEach;
@@ -205,7 +208,7 @@ uint8_t Adafruit_PWMServoDriverGroup::readPrescale() {
205
208
* microseconds, output is not precise
206
209
* @param num One of the PWM output pins, from 0 to (nDrivers * nServosEach -
207
210
* 1)
208
- * @param Microseconds The number of Microseconds to turn the PWM output ON
211
+ * @param microseconds The number of Microseconds to turn the PWM output ON
209
212
*/
210
213
void Adafruit_PWMServoDriverGroup::writeMicroseconds (uint8_t num,
211
214
uint16_t microseconds) {
@@ -235,6 +238,12 @@ void Adafruit_PWMServoDriverGroup::setOscillatorFrequency(uint32_t freq) {
235
238
_drivers[i]->setOscillatorFrequency (freq);
236
239
}
237
240
241
+ /* !
242
+ * @brief Setter for the internally tracked oscillator used for freq
243
+ * calculations
244
+ * @param id The id of the PCA9685 chip to set the frequency on
245
+ * @param freq The frequency the PCA9685 should use for frequency calculations
246
+ */
238
247
void Adafruit_PWMServoDriverGroup::setOscillatorFrequency (uint8_t id,
239
248
uint32_t freq) {
240
249
_drivers[id]->setOscillatorFrequency (freq);
0 commit comments