Modifications

Sauter à la navigation Sauter à la recherche
Ligne 154 : Ligne 154 :     
== How Much RAM Available? ==
 
== How Much RAM Available? ==
The ATSAMD21G18 has 32K of RAM, but you still might need to track it for some reason. You can do so with this handy function:
+
Un ATSAMD21G18 dispose de 32K de RAM mais vous pourriez avoir besoin de surveiller sa consommation pour des raisons propres à votre projet. Vous pouvez le faire à l'aide de cette fonction:
   −
<syntaxhighlight lang="python">
+
<syntaxhighlight lang="c">
 
extern "C" char *sbrk(int i);
 
extern "C" char *sbrk(int i);
    
int FreeRam () {
 
int FreeRam () {
 
   char stack_dummy = 0;
 
   char stack_dummy = 0;
   return &amp;stack_dummy - sbrk(0);
+
   return &stack_dummy - sbrk(0);
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
   −
Thx to <a href="http://forum.arduino.cc/index.php?topic=365830.msg2542879#msg2542879">http://forum.arduino.cc/index.php?topic=365830.msg2542879#msg2542879</a> for the tip!
+
Merci a [http://forum.arduino.cc/index.php?topic=365830.msg2542879#msg2542879 ce fil de discussion] sur les forums Arduino pour ce truc!
    
== Storing data in FLASH ==
 
== Storing data in FLASH ==
29 917

modifications

Menu de navigation