#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#ifndef PSTR
#define PSTR
#endif
#define PIN 2
#define mw 60
#define mh 7
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(mw, mh, PIN,NEO_MATRIX_PROGRESSIVE,NEO_GRB + NEO_KHZ800);
const uint16_t colors[] = {
matrix.Color(231, 115, 10), matrix.Color(0, 255, 0), matrix.Color(0, 0, 255), matrix.Color(255, 255, 255)
};
void setup() {
matrix.begin();
matrix.setTextWrap(false);
matrix.setBrightness(255);
matrix.setTextColor(colors[0]);
}
int x = matrix.width();
int pass = 0;
void loop() {
matrix.fillScreen(0);
matrix.setCursor(x, 0);
matrix.print(F("SHRI HAZUR SAHEB ITI BAFNA ROAD NANDED WELCOME YOU"));
if (--x < -310) {
x = matrix.width();
if (++pass >= 4) pass = 0;
matrix.setTextColor(colors[pass]);
}
matrix.show();
delay(50);
}