Différences entre versions de « NeoPixel-UserGuide-NeoMatrix »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
(Page créée avec « {{NeoPixel-UserGuide-NAV}} {{NeoPixel-UserGuide-TRAILER}} »)
 
Ligne 1 : Ligne 1 :
 
{{NeoPixel-UserGuide-NAV}}
 
{{NeoPixel-UserGuide-NAV}}
  
 +
{{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.
 +
 +
In addition to the Adafruit_NeoPixel library (which was already downloaded and installed in a prior step), NeoMatrix requires two additional libraries:
 +
 +
# [https://github.com/adafruit/Adafruit_NeoMatrix/archive/master.zip Adafruit_NeoMatrix]
 +
# [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.
 +
 +
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.
 +
Arduino sketches need to include {{underline|all three headers}} just to use this library:
 +
 +
<nowiki>    #include <Adafruit_GFX.h>
 +
    #include <Adafruit_NeoMatrix.h>
 +
    #include <Adafruit_NeoPixel.h>
 +
    #ifndef PSTR
 +
    #define PSTR // Make Arduino Due happy
 +
    #endif</nowiki>
 +
The extra ifdef/define/endif lines are only needed if you’re using an Arduino Due. Otherwise they can be left out.
  
 
{{NeoPixel-UserGuide-TRAILER}}
 
{{NeoPixel-UserGuide-TRAILER}}

Version du 2 mars 2014 à 13:06


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

NeoPixel-UserGuide-NeoMatrix-01.jpg
Crédit: AdaFruit Industries www.adafruit.com

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.

In addition to the Adafruit_NeoPixel library (which was already downloaded and installed in a prior step), NeoMatrix requires two additional libraries:

  1. Adafruit_NeoMatrix
  2. Adafruit_GFX

If you’ve previously used any Adafruit LCD or OLED displays, you might already have the latter library installed.

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. Arduino sketches need to include all three headers just to use this library:

    #include <Adafruit_GFX.h>
    #include <Adafruit_NeoMatrix.h>
    #include <Adafruit_NeoPixel.h>
    #ifndef PSTR
    #define PSTR // Make Arduino Due happy
    #endif

The extra ifdef/define/endif lines are only needed if you’re using an Arduino Due. Otherwise they can be left out.


Source: NeoPixel UserGuide créé par Phillip Burgess pour AdaFruit Industries. Crédit AdaFruit Industries

Traduit par Meurisse D. pour MCHobby.be

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.