Skip to content

circuito-suman/74HC595ledmatrixlibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💡LEDMatrix Library

Introduction

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.

🚀Installation

To use this library, download it from the release page

or

    git clone https://github.com/circuito-suman/74HC595ledmatrixlibrary
    cd 74HC595ledmatrixlibrary

🛠Usage

NOTE

Always call the but() function for handling the switch between WiFi STATION mode and WiFi AP mode.

Initialization


#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);
}

Basic Functions

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.

Text Scrolling

void loadString(const char *text);
void scrollLeftToRight(int n);
void scrollRightToLeft(int n);
void scrollUpToDown(int n);
void scrollDownToUp(int n);

Advanced Functions

    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.

for testing purpose also can use the src.ino file in the src folder

Demo Example


#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);
}

🔌Dependencies

OtaHelper (Optional): Provides over-the-air update functionality in AP mode only.
ESP8266WebServer for web based text update

Images

Include images here. 8x8 matrix cross

Schematic

Include schematic diagram here. 8x8 matrix cross

🙏 Acknowledgements

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 💻✨

Authors

Logo

Contributing

Contributions are always welcome!

License

This library is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published