https://github.com/ericogr/led-matrix
A MongooseOS ledMatrix implementation
https://github.com/ericogr/led-matrix
esp32 led library matrix mongoose-os
Last synced: about 1 month ago
JSON representation
A MongooseOS ledMatrix implementation
- Host: GitHub
- URL: https://github.com/ericogr/led-matrix
- Owner: ericogr
- License: apache-2.0
- Created: 2017-12-21T15:41:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T21:28:04.000Z (over 8 years ago)
- Last Synced: 2025-03-13T16:45:36.289Z (over 1 year ago)
- Topics: esp32, led, library, matrix, mongoose-os
- Language: C
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Led Matrix (MAX7219)
A MongooseOS ledMatrix based on Arduino library
## Use
```
#include "LedMatrix.h"
using namespace lm;
LedMatrix ledMatrix;
ledMatrix.init();
//ledMatrix.setRotation(true);
ledMatrix.setText("My IOT Device...");
ledMatrix.setTextAlignment(TEXT_ALIGN_LEFT_END);
ledMatrix.startAnimatedText(50);
```
## Config Schema
```
config_schema:
- ["ledm.number_of_displays", 4]
- ["ledm.slave_select_pin", 5]
- ["spi.enable", true]
- ["spi.miso_gpio", -1]
- ["spi.mosi_gpio", 23]
- ["spi.sclk_gpio", 18]
- ["spi.cs0_gpio", -1]
- ["spi.cs1_gpio", -1]
- ["spi.cs2_gpio", -1]
```
* Change spi pins to your device. We don't use miso, cs0, cs1 and cs2
## Libs
```
libs:
- origin: https://github.com/ericogr/led-matrix
```