File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 20
20
#include < avr/interrupt.h>
21
21
#include < Arduino.h>
22
22
23
- #include < Servo.h>
24
- #include " ServoTimers.h"
23
+ #include " Servo.h"
25
24
26
25
#define usToTicks (_us ) (( clockCyclesPerMicrosecond()* _us) / 8 ) // converts microseconds to tick (assumes prescale of 8) // 12 Aug 2009
27
26
#define ticksToUs (_ticks ) (( (unsigned )_ticks * 8 )/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds
Original file line number Diff line number Diff line change 19
19
20
20
#include < Arduino.h>
21
21
#include < Servo.h>
22
- #include " ServoTimers.h"
23
22
24
23
#define usToTicks (_us ) (( clockCyclesPerMicrosecond() * _us) / 32 ) // converts microseconds to tick
25
24
#define ticksToUs (_ticks ) (( (unsigned )_ticks * 32 )/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds
Original file line number Diff line number Diff line change 58
58
* _Nbr_16timers indicates how many 16 bit timers are available.
59
59
*/
60
60
61
+ // Architecture specific include
62
+ #include < ServoTimers.h>
63
+
61
64
#define Servo_VERSION 2 // software version of this library
62
65
63
66
#define MIN_PULSE_WIDTH 544 // the shortest pulse sent to a servo
You can’t perform that action at this time.
0 commit comments