Modifications

Sauter à la navigation Sauter à la recherche
16 octets supprimés ,  2 mars 2014 à 22:31
Ligne 55 : Ligne 55 :  
Nous pouvons déclarer la matrice comme suit:  
 
Nous pouvons déclarer la matrice comme suit:  
   −
  <nowiki>   Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(5, 8, 6,
+
  <nowiki>Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(5, 8, 6,
    NEO_MATRIX_TOP + NEO_MATRIX_RIGHT +
+
NEO_MATRIX_TOP + NEO_MATRIX_RIGHT +
    NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE,
+
NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE,
    NEO_GRB + NEO_KHZ800);</nowiki>
+
NEO_GRB + NEO_KHZ800);</nowiki>
    
The first two arguments — 5 and 8 — are the width and height of the matrix, in pixels. The third argument — 6 — is the pin number to which the NeoPixels are connected. On the shield this is hard-wired to digital pin 6, but standalone matrices are free to use other pins.
 
The first two arguments — 5 and 8 — are the width and height of the matrix, in pixels. The third argument — 6 — is the pin number to which the NeoPixels are connected. On the shield this is hard-wired to digital pin 6, but standalone matrices are free to use other pins.
29 917

modifications

Menu de navigation