Adafruit_NeoMatrix

Bonjour,

J'ai un problème avec mon Arduino Uno R4 Wifi. J'essaie de faire fonctionner ma matrice led ws2812b 8x32 mais impossible de l'allumer ou de la faire fonctionner.

Par contre, chose étrange, avec mon Arduino R3 tout fonctionne. Y a-t-il une incompatibilité de ces bibliothèques avec le nouveau Arduino ? Avez-vous une solution ?

Merci.

Hello,

I have a problem with my Arduino Uno R4 Wifi. I'm trying to get my ws2812b 8x32 led matrix to work but can't turn it on or get it to work.

On the other hand, strangely enough, with my Arduino R3 everything works. Is there any incompatibility of these libraries with the new Arduino? Do you have a solution ?

THANKS.

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

#define PIN 6

Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(32, 8, PIN,
  NEO_MATRIX_TOP     + NEO_MATRIX_LEFT + NEO_MATRIX_ZIGZAG +
  NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE,
  NEO_GRB            + NEO_KHZ800);

const uint16_t colors[] = {
  matrix.Color(255, 0, 0), matrix.Color(0, 255, 0), matrix.Color(0, 0, 255) };

void setup() {
  matrix.begin();
  matrix.setTextWrap(false);
  matrix.setBrightness(40);
  matrix.setTextColor(colors[0]);
}

int x    = matrix.width();
int pass = 0;

void loop() {
  matrix.fillScreen(0);
  matrix.setCursor(x, 0);
  matrix.print(F("Howdy"));
  if(--x < -36) {
    x = matrix.width();
    if(++pass >= 3) pass = 0;
    matrix.setTextColor(colors[pass]);
  }
  matrix.show();
  delay(100);
}

The libraries may be very new or have not been ported to R4.

Les bibliothèques sont peut-être très récentes ou n'ont pas été portées.