#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_NeoMatrix.h> // Matrix library
#include <Adafruit_NeoPixel.h> // NeoPixel library
#define PIN 5 // Data pin connected to the LED matrix
// Create a NeoMatrix object for 8x32 matrix
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(
32, 8, PIN,
NEO_MATRIX_TOP + NEO_MATRIX_LEFT +
NEO_MATRIX_ROWS + NEO_MATRIX_PROGRESSIVE,
NEO_GRB + NEO_KHZ800);
const uint16_t textColor = matrix.Color(0, 255, 0); // Green color for text
int16_t x = matrix.width(); // Start position of text (off the right edge)
int16_t y = 6; // Vertical position of text (adjust for font height)
const char message[] = "WELCOME TO AI CENTRE NANDURBAR ";
void setup() {
matrix.begin();
matrix.setTextWrap(false); // Allow text to run off edges
matrix.setBrightness(40); // Adjust brightness (0-255)
matrix.setTextColor(textColor);
}
void loop() {
matrix.fillScreen(0); // Clear screen
matrix.setCursor(x, y); // Set cursor position
matrix.print(message); // Print the message
matrix.show(); // Update the display
x--; // Move text left by 1 pixel
// Reset to start when text has scrolled completely off left edge
if (x < -matrix.textWidth(message)) {
x = matrix.width();
}
delay(50); // Adjust scrolling speed
}
Loading
esp32-s3-devkitc-1
esp32-s3-devkitc-1
https://wokwi.com/projects/new/esp32-s3
https://wokwi.com/projects/463067959240850433
https://wokwi.com/projects/463067066850000897