File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 26
26
27
27
#include <avr/io.h>
28
28
29
- //#define USE_TIMERB1 // interferes with PWM on pin 3
30
- #define USE_TIMERB2 // interferes with PWM on pin 11
31
- //#define USE_TIMERB0 // interferes with PWM on pin 6
32
-
33
29
#if !defined(USE_TIMERB1 ) && !defined(USE_TIMERB2 ) && !defined(USE_TIMERB0 )
34
- # error "No timers allowed for Servo"
35
- /* Please uncomment a timer above and rebuild */
30
+ #define USE_TIMERB2 // default timer
36
31
#endif
37
32
38
33
static volatile TCB_t * _timer =
39
- #if defined(USE_TIMERB0 )
34
+ #if defined(USE_TIMERB0 ) // interferes with PWM on pin 6
40
35
& TCB0 ;
41
36
#endif
42
- #if defined(USE_TIMERB1 )
37
+ #if defined(USE_TIMERB1 ) // interferes with PWM on pin 3
43
38
& TCB1 ;
44
39
#endif
45
- #if defined(USE_TIMERB2 )
40
+ #if defined(USE_TIMERB2 ) // interferes with PWM on pin 11
46
41
& TCB2 ;
47
42
#endif
48
43
You can’t perform that action at this time.
0 commit comments