#include "LedControl.h"
LedControl lc=LedControl(10,12,11,1);
bool state = 1;
String numpad[2][2] = {
{"00", "01"},
{"10", "11"},
};
void setup() {
Serial.begin(115200);
lc.shutdown(0,false);
lc.setIntensity(0,8);
// Serial.println(numpad[1][0][0]);
// Serial.println(numpad[1][0][1]);
}
// char * findIndex( in)
void loop() {
// put your main code here, to run repeatedly:
// for(int c = 0; c <=3 ; c++){
// for(int r = 0; r <= 3; r++){
// lc.setLed(0, c, r, state);
// delay(500);
// }}
for(int c = 0; c <= 1; c ++){
for(int r = 0; r <= 1; r++){
int x = numpad[c][r][0];
int y = numpad[c][r][1];
lc.setLed(0, x, y, state);
Serial.println(x, y);
delay(1000);
}
}
state = !state;
}