Modifications

Sauter à la navigation Sauter à la recherche
Ligne 74 : Ligne 74 :  
Adafruit_GFX sait uniquement gérer la rotation. Cela gérerait le cas de notre exemple ci-dessus, mais ne prendra pas en charge les permutation de rotation et effet miroir qui peuvent se présenter dans certaines disposition de matrice (matrix layouts), sans oublier le support "zig-zag" capability, ou encore ce que nous allons aborder dans la section suivante…
 
Adafruit_GFX sait uniquement gérer la rotation. Cela gérerait le cas de notre exemple ci-dessus, mais ne prendra pas en charge les permutation de rotation et effet miroir qui peuvent se présenter dans certaines disposition de matrice (matrix layouts), sans oublier le support "zig-zag" capability, ou encore ce que nous allons aborder dans la section suivante…
   −
== Tiled Matrices ==
+
== Matrices en damier (tiled) ==
A ''tiled'' matrix is comprised of multiple smaller NeoPixel matrices. This is sometimes easier for assembly or for distributing power. All of the sub-matrices need to be the same size, and must be ordered in a predictable manner. The Adafruit_NeoMatrix() constructor then receives some additional arguments:
+
Une matrice en damier (''tiled matrix'') est composé de plusieurs matrices NéoPixel plus petites. C'est parfois plus simple à assembler ou permet de distribuer l'alimentation plus facilement. Toutes les sous-matrices doivent avoir la même taille et sont positionnées de façon prévisible. Le constructeur Adafruit_NeoMatrix() reçoit alors des arguments supplémentaires:
    
  <nowiki>Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(
 
  <nowiki>Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(
 
   matrixWidth, matrixHeight, tilesX, tilesY, pin, matrixType, ledType);</nowiki>
 
   matrixWidth, matrixHeight, tilesX, tilesY, pin, matrixType, ledType);</nowiki>
   −
The first two arguments are the width and height, in pixels, of {{underline|each}} tiled {{underline|sub-matrix}}, {{underline|not}} the entire display.
+
* '''matrixWidth, matrixHeight''': Les deux premiers arguments sont la largeur (''width'') et la hauteur (''height'') en pixel de {{underline|chacune des sous-matrices}} composant le damier, et {{underline|non}} la taille de l'afficheur dans sa totalité.
 +
* '''tilesX, tilesY''': Les deux arguments suivants représente le nombre de dalles du damier dans les deux directions. ''TilesX'' représente le nombre de dalles horizontales et ''TilesY'' à la verticale. La dimension totale de l'affichage est donc un multiple de la dimension des sous-matrices.
 +
* '''pin''': ce 5ième argument est le même qu'avant et identique à celui de la bibliothèque NeoPixel. C'est l'identification de la broche de donnée.
 +
* '''matrixType''': ce paramètre est plus compliqué... et donc abordé séparément ci-dessous.
 +
* '''ledType'':  le dernier argument permet d'identifier le type de NéoPixel utilise. Voir la description plus haut dans cet article.
   −
The next two arguments are the number of tiles, in the horizontal and vertical direction. The dimensions of the overall display then will always be a multiple of the sub-matrix dimensions.
+
=== Le paramètre matrixType ===
   −
The fifth argument is the pin number, same as before and as with the NeoPixel library. The last argument also follows prior behaviors, and in most cases can be left off.
+
Avec un seule matrice, il y avait un coin de départ, un axe majeur (principal) major axis (rows or columns) and a line sequence (progressive or zigzag). This is now doubled — similar information is needed both for the pixel order within the individual tiles, {{underline|and}} the overall arrangement of tiles in the display. As before, we add up a list of symbols to produce a single argument describing the display format.
 
  −
The second-to-last argument though…this gets complicated…
  −
 
  −
With a single matrix, there was a starting corner, a major axis (rows or columns) and a line sequence (progressive or zigzag). This is now doubled — similar information is needed both for the pixel order within the individual tiles, {{underline|and}} the overall arrangement of tiles in the display. As before, we add up a list of symbols to produce a single argument describing the display format.
      
The NEO_MATRIX_* symbols work the same as in the prior single-matrix case, and now refer to the individual sub-matrices within the overall display. All tiles must follow the same format. An additional set of symbols work similarly to then describe the tile order.
 
The NEO_MATRIX_* symbols work the same as in the prior single-matrix case, and now refer to the individual sub-matrices within the overall display. All tiles must follow the same format. An additional set of symbols work similarly to then describe the tile order.
29 917

modifications

Menu de navigation