Skip to content

Commit 430c27f

Browse files
Update Servo.h
1 parent 65c22a8 commit 430c27f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Servo.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@
8383
#define MAX_PULSE_WIDTH 2400 // the longest pulse sent to a servo
8484
#define DEFAULT_PULSE_WIDTH 1500 // default pulse width when servo is attached
8585
#define REFRESH_INTERVAL 20000 // minimum time to refresh servos in microseconds
86-
//1/0.02s = 50Hz
87-
//1/333Hz = 0.003003s * 1000000µs = 3003µs for a refesh rate
86+
//20000µs/1000000µs = 0.02s
87+
//1/0.02s = 50Hz
88+
//1/333Hz = 0.003003s * 1000000µs = 3003µs for a refesh rate
8889

8990
#define SERVOS_PER_TIMER 12 // the maximum number of servos controlled by one timer
9091
#define MAX_SERVOS (_Nbr_16timers * SERVOS_PER_TIMER)

0 commit comments

Comments
 (0)