APA102 8x32 matrix and text

Status
Not open for further replies.

Vincenet

Active member
Hello,
I start a project using an APA102 8x32 led matrix +teensy and prop shield.
I would like to display some text.
I started with a library from adafruit and would like something faster.
It uses :
Code:
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_DotStarMatrix.h>
#include <Adafruit_DotStar.h>
...
#define DATAPIN  11
#define CLOCKPIN 13
#define LED_EN 7
...
Adafruit_DotStarMatrix matrix = Adafruit_DotStarMatrix(
  32, 8, DATAPIN, CLOCKPIN,
  DS_MATRIX_TOP     + DS_MATRIX_LEFT +
  DS_MATRIX_COLUMNS + DS_MATRIX_ZIGZAG,
  DOTSTAR_BRG);
...
  matrix.print(F("hello"));
...
  matrix.show();
...
The show() function takes about 8ms.

Then I tried Blink example of fastled library and it works faster. Now I am looking for the most appropriate matrix layer software. Should I keep part of adafruit example ?
Is the smartMatrix library designed for that or for the specific hardware ?

Thanks in advance and best regards,
Vincent
 
I see WS2812 seems more used here than APA102. Is the answer easier if I have WS2812 ?
Is one chip more reliable ?
Thanx
 
Status
Not open for further replies.
Back
Top