Bibliothèque Neomatrix D'adafruit - Velleman VM207 Mode D'emploi

Table des Matières

Publicité

Bibliothèque NeoMatrix
La bibliothèque NeoMatrix vous permet d'afficher des caractères ou des formes graphiques sur le(s)
panneau(x). Pour utiliser cette bibliothèque, installez également la bibliothèque GFX d'Adafruit. Cette biblio-
thèque gère les opérations graphiques (formes, caractères et couleurs). La bibliothèque NeoMatrix envoie ces
données aux panneaux.
Téléchargez la bibliothèque NeoMatrix sur:
bouton Download ZIP)
Téléchargez la bibliothèque GFX sur:
Download ZIP)
Installez les bibliothèques dans votre installation Arduino (placez les dossiers téléchargés et décompressés
dans le dossier "Libraries" de l'installation Arduino) et lancez le logiciel Arduino. Assurez-vous d'avoir installé la
bibliothèque NeoPixel.
Allez à: File > Examples > Adafruit Neopixel > simple. Arduino ouvre le sketch (croquis).
Le fichier d'en tête s'affiche comme suit :
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#ifndef PSTR
#define PSTR // Make Arduino Due happy
#endif
#define PIN 6
// MATRIX DECLARATION:
// Parameter 1 = width of NeoPixel matrix
// Parameter 2 = height of matrix
// Parameter 3 = pin number (most are valid)
// Parameter 4 = matrix layout flags, add together as needed:
//
NEO_MATRIX_TOP, NEO_MATRIX_BOTTOM, NEO_MATRIX_LEFT, NEO_MATRIX_RIGHT:
//
Position of the FIRST LED in the matrix; pick two, e.g.
//
NEO_MATRIX_TOP + NEO_MATRIX_LEFT for the top-left corner.
//
NEO_MATRIX_ROWS, NEO_MATRIX_COLUMNS: LEDs are arranged in horizontal
//
rows or in vertical columns, respectively; pick one or the other.
//
NEO_MATRIX_PROGRESSIVE, NEO_MATRIX_ZIGZAG: all rows/columns proceed
//
in the same order, or alternate lines reverse direction; pick one.
//
See example below for these values in action.
// Parameter 5 = pixel type flags, add together as needed:
//
NEO_KHZ800
//
NEO_KHZ400
//
NEO_GRB
//
NEO_RGB
MODE D'EMPLOI
K8403
https://github.com/adafruit/Adafruit-GFX-Library
800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
Pixels are wired for GRB bitstream (most NeoPixel products)
Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
https://github.com/adafruit/Adafruit_NeoMatrix
(appuyez sur le
(appuyez sur le bouton
14

Publicité

Table des Matières
loading

Table des Matières