File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2020#include < avr/interrupt.h>
2121#include < Arduino.h>
2222
23- #include " Servo.h"
23+ #include < Servo.h>
24+ #include " ServoTimers.h"
2425
2526#define usToTicks (_us ) (( clockCyclesPerMicrosecond()* _us) / 8 ) // converts microseconds to tick (assumes prescale of 8) // 12 Aug 2009
2627#define ticksToUs (_ticks ) (( (unsigned )_ticks * 8 )/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds
Original file line number Diff line number Diff line change 1919
2020#include < Arduino.h>
2121#include < Servo.h>
22+ #include " ServoTimers.h"
2223
2324#define usToTicks (_us ) (( clockCyclesPerMicrosecond() * _us) / 32 ) // converts microseconds to tick
2425#define ticksToUs (_ticks ) (( (unsigned )_ticks * 32 )/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds
Original file line number Diff line number Diff line change 5858 * _Nbr_16timers indicates how many 16 bit timers are available.
5959 */
6060
61- // Architecture specific include
62- #include < ServoTimers.h>
63-
6461#define Servo_VERSION 2 // software version of this library
6562
6663#define MIN_PULSE_WIDTH 544 // the shortest pulse sent to a servo
You can’t perform that action at this time.
0 commit comments