Modifications

Sauter à la navigation Sauter à la recherche
Ligne 10 : Ligne 10 :  
# First, you will need to locate the Arduino IDE’s Servo library, and find the file inside it named ServoTimers.h. For the 1.6.x versions of the IDE, this file can be found in libraries/Servo/src/avr/ServoTimers.h. If you are using Mac OS X, you will need to right-click on the Arduino IDE icon and select “Show Package Contents” to see the files inside.
 
# First, you will need to locate the Arduino IDE’s Servo library, and find the file inside it named ServoTimers.h. For the 1.6.x versions of the IDE, this file can be found in libraries/Servo/src/avr/ServoTimers.h. If you are using Mac OS X, you will need to right-click on the Arduino IDE icon and select “Show Package Contents” to see the files inside.
 
# Open ServoTimers.h in a text editor.
 
# Open ServoTimers.h in a text editor.
# Locate the following lines of code in ServoTimers.h: <nowiki>    #elif defined(__AVR_ATmega32U4__)   
+
# Locate the following lines of code in ServoTimers.h:
 +
<nowiki>    #elif defined(__AVR_ATmega32U4__)   
 
     #define _useTimer1  
 
     #define _useTimer1  
     typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ;</nowiki>
+
     typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ;
 +
</nowiki>
 
# The lower two lines of code specify that the library should use Timer 1. To use Timer 3 instead, just change {{fname|_useTimer1}} to {{fname|_useTimer3}} and {{fname|_timer1}} to {{fname|_timer3}}.
 
# The lower two lines of code specify that the library should use Timer 1. To use Timer 3 instead, just change {{fname|_useTimer1}} to {{fname|_useTimer3}} and {{fname|_timer1}} to {{fname|_timer3}}.
 
# Save the file.
 
# Save the file.
29 837

modifications

Menu de navigation