/*
PINOUT:
MODULE.....NodeMCU/WeMos D1 mini
VCC.............+5V or +3.3V
GND.............GND
DIN.............GPIO12(D6)
CS (LOAD).......GPIO13(D7)
CLK.............GPIO15(D8)
*/
#include "LedControl.h"
LedControl lc=LedControl(D6,D8,D7,1); // D6-->DIN, D8-->Clk, D7-->LOAD, no.of devices is 1
void setup()
{
lc.shutdown(0,false); // Enable display
lc.setIntensity(0,10); // Set brightness level (0 is min, 15 is max)
lc.clearDisplay(0); // Clear display register
}
void loop()
{
lc.setDigit(0,7,2,false);
lc.setDigit(0,6,3,true);
lc.setDigit(0,5,4,false);
lc.setRow(0,4,B00110111);
lc.setRow(0,3,B01001111);
lc.setRow(0,2,B00001110);
lc.setRow(0,1,B00001110);
lc.setRow(0,0,B01111110);
delay(1000);
}