Simple DM11A88 8x8 led matrix library for ESP8266.
DM11A88 is a 8×8 square led matrix module which is based on a couple of 74hc595.
This library can draw whatever you want on the display, but it needs to be constantly refreshed in the loop()
.
Full example (see writeM example):
#include <ControlDM11A88.h>
// Parameters: DI_PIN, CLK_PIN, LAT_PIN
ControlDM11A88 lc(D7, D8, D5, 1);
uint8_t i;
uint8_t led[] = {
B10000010, B11000110, B10101010, B10010010,
B10000010, B10000010, B10000010, B10000010,
};
void setup()
{
}
void loop()
{
for (i=0; i<8; i++) {
lc.setRow(0, i, led[i]);
}
}
The library can help you to draw animations, too, see sprites and counter examples.
You can daisy chain multiple devices, see multipleDevices example.
- Wemos D1 mini