Modifications

Sauter à la navigation Sauter à la recherche
Ligne 150 : Ligne 150 :  
Une autre possibilité (moins courante) c'est de tomber à court de RAM — voyez la section ci-dessous. Si votre programme ''semble fonctionner'' mais qu'il produit un résultat non prévisible alors considérez cette option.
 
Une autre possibilité (moins courante) c'est de tomber à court de RAM — voyez la section ci-dessous. Si votre programme ''semble fonctionner'' mais qu'il produit un résultat non prévisible alors considérez cette option.
   −
=== Can I have multiple NeoPixel objects on different pins? ===
+
=== Puis-je avoir différents objets NéoPixel sur différente broches? ===
   −
Certainly! Each requires its own declaration with a unique name:
+
Evidemment! Chaque broche de commande nécessitant sa propre déclaration avec un nom unique:
   −
  <nowiki>Adafruit_NeoPixel strip_a = Adafruit_NeoPixel(16, 5);
+
  <nowiki>Adafruit_NeoPixel ruban_a = Adafruit_NeoPixel(16, 5);
Adafruit_NeoPixel strip_b = Adafruit_NeoPixel(16, 6);</nowiki>
+
Adafruit_NeoPixel ruban_b = Adafruit_NeoPixel(16, 6);</nowiki>
   −
The above declares two distinct NeoPixel objects, one each on pins 5 and 6, each containing 16 pixels and using the implied default type (NEO_KHZ800 + NEO_GRB).  
+
La déclaration ci-dessis crée deux objets NéoPixel, un sur la broche 5 et l'autre sur la broche 6, chacun contenant 16 pixels et utilisant la configuration NéoPixel implicite (NEO_KHZ800 + NEO_GRB).
    
=== Can I connect multiple NeoPixel strips to the same Arduino pin? ===
 
=== Can I connect multiple NeoPixel strips to the same Arduino pin? ===
29 917

modifications

Menu de navigation