Modifications

Sauter à la navigation Sauter à la recherche
Ligne 4 : Ligne 4 :  
{{ADFImage|NeoPixel-UserGuide-NeoMatrix-01.jpg|640px}}
 
{{ADFImage|NeoPixel-UserGuide-NeoMatrix-01.jpg|640px}}
   −
The Adafruit_NeoMatrix library builds upon Adafruit_NeoPixel to create two-dimensional graphic displays using NeoPixels. You can then easily draw shapes, text and animation without having to calculate every X/Y pixel position. Small NeoPixel matrices are available in the shop. Larger displays can be formed using sections of NeoPixel strip, as shown in the photo above.
+
La bibliothèque Adafruit_NeoMatrix réalisée sur les fondations d'Adafruit_NeoPixel permet de créer des afficheurs graphique à deux dimensions en utilisant des NéoPixels. Vous pouvez alors dessiner facilement des formes, du texte et animations sans avoir à calculer la position X/Y de chaque pixel. Vous pouvez trouver de {{sl|NeoPixel|petites matrices sur le WebShop}}. Il est possible de réaliser de plus grand afficheurs en utilisant des sections de ruban NéoPixels, comme présenté sur la photo ci-dessus.
   −
In addition to the Adafruit_NeoPixel library (which was already downloaded and installed in a prior step), NeoMatrix requires two additional libraries:
+
En plus de la bibliothèque Adafruit_NeoPixel (qui a déjà été téléchargée et installée à une étape précédente), NeoMatrix nécessite deux autres bibliothèques complémentaires:
    
# [https://github.com/adafruit/Adafruit_NeoMatrix/archive/master.zip Adafruit_NeoMatrix]
 
# [https://github.com/adafruit/Adafruit_NeoMatrix/archive/master.zip Adafruit_NeoMatrix]
 
# [https://github.com/adafruit/Adafruit-GFX-Library/archive/master.zip Adafruit_GFX]
 
# [https://github.com/adafruit/Adafruit-GFX-Library/archive/master.zip Adafruit_GFX]
   −
If you’ve previously used any Adafruit LCD or OLED displays, you might already have the latter library installed.
+
Si vous avez déjà installé une LCD ou écran OLED AdaFruit, vous devriez déjà avoir utilisé la bibliothèque Adafruit_GFX.
   −
Installation for both is similar to Adafruit_NeoPixel before: unzip, make sure the folder name matches the .cpp and .h files within, then move to your Arduino libraries folder and restart the IDE.
+
L'installation des deux bibliothèques est similaire à celle d'Adafruit_NeoPixel. Décompressez les archives zip, assurez vous que le nom de répertoire correspond au fichiers .cpp et .h qu'il contient, déplacez ensuite le répertoire dans le répertoire des bibliothèques Arduino (nommé "''libraries''") et redémarrer Arduino IDE.
Arduino sketches need to include {{underline|all three headers}} just to use this library:
     −
  <nowiki>   #include <Adafruit_GFX.h>
+
Les croquis/sketch Arduino doivent inclure {{underline|les fichiers header suivant}} pour pouvoir utiliser cette bibliothèque:
    #include <Adafruit_NeoMatrix.h>
+
 
    #include <Adafruit_NeoPixel.h>
+
  <nowiki>#include <Adafruit_GFX.h>
    #ifndef PSTR
+
#include <Adafruit_NeoMatrix.h>
    #define PSTR // Make Arduino Due happy
+
#include <Adafruit_NeoPixel.h>
    #endif</nowiki>
+
#ifndef PSTR
The extra ifdef/define/endif lines are only needed if you’re using an Arduino Due. Otherwise they can be left out.  
+
#define PSTR // pour faire plaisir à Arduino Due
 +
#endif</nowiki>
 +
 
 +
Les lignes supplémentaires ifdef/define/endif sont uniquement nécessaire si vous voulez utiliser un Arduino Due. Sinon, vous pouvez les ignorer.
    
== Les dispositions ==
 
== Les dispositions ==
29 917

modifications

Menu de navigation