Modifications

Sauter à la navigation Sauter à la recherche
Ligne 88 : Ligne 88 :  
Sur un Cortex ARM, le signal PWM sera fixé à 255/256. Par conséquent, il y aura toujours une très petite 'implusion à 0v'. Si vous avez besoin que le signal soit continuellement HIGH alors il faudra ajouter un test qui remplace l'instruction {{fname|analogWrite(pin, 255)}} par {{fname|digitalWrite(pin, HIGH)}}
 
Sur un Cortex ARM, le signal PWM sera fixé à 255/256. Par conséquent, il y aura toujours une très petite 'implusion à 0v'. Si vous avez besoin que le signal soit continuellement HIGH alors il faudra ajouter un test qui remplace l'instruction {{fname|analogWrite(pin, 255)}} par {{fname|digitalWrite(pin, HIGH)}}
   −
== Missing header files ==
+
== Fichier d'entête manquant ==
there might be code that uses libraries that are not supported by the M0 core. For example if you have a line with
+
Vous pourriez avoir du code qui utilise des bibliothèques non supportée sur un coeur M0. Par exemple, si vous avez du code contenant la ligne suivante:
   −
<code>#include <util/delay.h></code>
+
<syntaxhighlight lang="c">
 +
#include <util/delay.h>
 +
</syntaxhighlight>
   −
you'll get an error that says
+
alors vous obtiendrez une erreur mentionnant
   −
<code>fatal error: util/delay.h: No such file or directory<br>  #include <util/delay.h><br>                         ^<br>compilation terminated.<br>Error compiling.</code>
+
<nowiki>fatal error: util/delay.h: No such file or directory
 +
  #include <util/delay.h>
 +
                         ^
 +
compilation terminated.
 +
Error compiling.
 +
</nowiki>
    
In which case you can simply locate where the line is (the error will give you the file name and line number) and 'wrap it' with #ifdef's so it looks like:
 
In which case you can simply locate where the line is (the error will give you the file name and line number) and 'wrap it' with #ifdef's so it looks like:
29 917

modifications

Menu de navigation