//
// ESP32 64x8 Static Message - this script uses two 32x8 panels
// to create a single 64x8 maxtrix.
//
#include <Adafruit_NeoPixel.h>
#include <Adafruit_NeoMatrix.h>
#define PIN 2
#define STATIC_MESSAGE "Titanium"
#define FIRST_CHAR_POSITION 1 // Pixels from left side starting with 0
// Two matrix matrix
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(32, 8, 2, 1, PIN,
NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_ROWS + NEO_MATRIX_PROGRESSIVE +
NEO_TILE_TOP + NEO_TILE_LEFT + NEO_TILE_ROWS + NEO_TILE_PROGRESSIVE,
NEO_GRB + NEO_KHZ800);
// Other declarations
const char myMessage[] = STATIC_MESSAGE;
const int myMessageCharacterCount = (sizeof(myMessage)/sizeof(myMessage[0])) - 1;
const int displayWidth = matrix.width();
const uint16_t black = matrix.Color( 0, 0, 0);
const uint16_t red = matrix.Color(255, 0, 0);
//
// Setup function
//
void setup() {
Serial.begin(115200);
Serial.print("myMessage has ");
Serial.print(myMessageCharacterCount);
Serial.print(" characters. Matrix panel is ");
Serial.print(displayWidth);
Serial.println(" pixels in width.");
matrix.begin();
matrix.setTextWrap(false);
matrix.setBrightness(255);
matrix.fillScreen(black);
matrix.setTextColor(red);
matrix.setCursor(FIRST_CHAR_POSITION, 0);
matrix.print(myMessage);
matrix.show();
}
//
// Loop function
//
void loop() {
}
X Coordinate -->
Y Coordinate -->