This library provides functions to control an LED matrix using an ESP8266 microcontroller. It allows for horizontal and vertical scrolling of text, as well as basic LED manipulation.
To use this library, download it from the release page
or
git clone https://github.com/circuito-suman/74HC595ledmatrixlibrary
cd 74HC595ledmatrixlibrary
Always call the but() function for handling the switch between WiFi STATION mode and WiFi AP mode.
#include "LEDMatrix.h"
LEDMatrix ledMatrix;
const char* ssid = "real"; // your wifi ssid
const char* password = "suman saha"; // your wifi password
void setup() {
ledMatrix.begin(ssid, password);
}
void test(): Displays a test pattern on the LED matrix.
void drawLedHorizontal(): Draws LEDs horizontally.
void drawLedVertical(): Draws LEDs vertically.
void update(): Updates the LED matrix.
void loadString(const char *text);
void scrollLeftToRight(int n);
void scrollRightToLeft(int n);
void scrollUpToDown(int n);
void scrollDownToUp(int n);
void shiftLeft(int delayTime): Shifts LEDs to the left.
void shiftRight(int delayTime): Shifts LEDs to the right.
void brightnesscontrol(int br): Controls the brightness of the LEDs.
void shutdown(bool status): Shuts down or restores the LED matrix.
#include "LEDMatrix.h"
LEDMatrix ledMatrix;
const char* ssid = "real"; // your wifi ssid
const char* password = "suman saha"; // your wifi password
int scrollspeed=30;
void setup() {
ledMatrix.begin(ssid, password);
ledMatrix.loadString("initiated");
ledMatrix.scrollLeftToRight(scrollspeed);
}
void loop() {
ledMatrix.loadString("Suman wants you to try this out");
ledMatrix.scrollDownToUp(scrollspeed);
ledMatrix.scrollLeftToRight(scrollspeed);
ledMatrix.scrollRightToLeft(scrollspeed);
ledMatrix.scrollUpToDown(scrollspeed);
}
OtaHelper (Optional): Provides over-the-air update functionality in AP mode only.
ESP8266WebServer for web based text update
Include schematic diagram here.
Thank you for checking out this project! If you have any questions or suggestions, feel free to open an issue or reach out to me on social media. Happing learning 💻✨
Contributions are always welcome!
This library is licensed under the MIT License.