Adafruit Neomatrix Library - Velleman VM207 User Manual

64 led rgb matrix
Table of Contents

Advertisement

Adafruit neomatrix library

If you want to display text or draw shapes on your panel(s) you can use the ADAFRUIT NEOMATRIX library. To
make this library work you actually also need to use the ADAFRUIT GFX libraries. This one takes care of the
shapes, letters and colours while the neomatrix takes care of sending all that data to the panels.
You can download the ADAFRUIT NEOMATRIX library here:
(press the Download ZIP button)
You can download the ADAFRUIT GFX library
Download ZIP button)
Then you can again install these libraries in your Arduino installation (place the downloaded and unpacked fold-
ers in the libraries folder of the Arduino installation) and then start the Arduino software (make sure you also
have the ADAFRUIT NEOPIXEL library installed).
If you now go to: File > Examples > Adafruit Neopixel > simple Arduino will open that sketch.
The top section of the file that you just opened will look like this:
#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
800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
//
NEO_KHZ400
400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
//
NEO_GRB
Pixels are wired for GRB bitstream (most NeoPixel products)
//
NEO_RGB
Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
USER MANUAL
K8403
https://github.com/adafruit/Adafruit_NeoMatrix
here:https://github.com/adafruit/Adafruit-GFX-Library
(press the
14

Advertisement

Table of Contents
loading

Table of Contents