Modifications

Sauter à la navigation Sauter à la recherche
176 octets supprimés ,  21 septembre 2018 à 19:34
Ligne 9 : Ligne 9 :  
If you want to use the '''ARef''' for a voltage reference under 3.3v, the line code to use is {{fname|analogReference(AR_EXTERNAL)}} with '''AR_EXTERNAL''' and not ''EXTERNAL''.
 
If you want to use the '''ARef''' for a voltage reference under 3.3v, the line code to use is {{fname|analogReference(AR_EXTERNAL)}} with '''AR_EXTERNAL''' and not ''EXTERNAL''.
   −
== Broches et pull-up ==
+
== Pins and pull-up ==
L'ancienne façon d'activer une broche en entrée avec un avec résistance pullup etait:
+
The old way of activating the pull-up resistor was:
    
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
Ligne 17 : Ligne 17 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Parce que le registre de selection-pullup (''pullup-selection'') est le même que le registre de sélection-des-sortie (''output-selection'').
+
Because the ''pullup-selection'' register was the same register than ''output-selection'' register.
   −
Vous ne pouvez plus utiliser cette approche avec le M0! Il faut utiliser:  
+
For the M0 (as for many plateform), the code to use is:  
 
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
 
pinMode(pin, INPUT_PULLUP)
 
pinMode(pin, INPUT_PULLUP)
 
</syntaxhighlight>
 
</syntaxhighlight>
  −
Approche qui à au moins le bénéfice d'être rétro-compatible avec AVR.
      
== Serial ou SerialUSB ==
 
== Serial ou SerialUSB ==
29 836

modifications

Menu de navigation