Modifications

Sauter à la navigation Sauter à la recherche
Ligne 11 : Ligne 11 :  
# Open ServoTimers.h in a text editor.
 
# Open ServoTimers.h in a text editor.
 
# Locate the following lines of code in ServoTimers.h:
 
# Locate the following lines of code in ServoTimers.h:
<nowiki>   #elif defined(__AVR_ATmega32U4__)   
+
<syntaxhighlight lang="c">
 +
    #elif defined(__AVR_ATmega32U4__)   
 
     #define _useTimer1  
 
     #define _useTimer1  
 
     typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ;
 
     typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ;
</nowiki>
+
</syntaxhighlight>
 
# 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 879

modifications

Menu de navigation