#include <LedControl.h>
LedControl lcd(2, 4, 3, 1);
//DIN, CS (loadas), CLK, kiek monitoriu
void setup() {
lcd.shutdown(0, false); //kuris monitorius, ar isjungt?
lcd.setIntensity(0, 10); //kuris lcd, lcd sviesumas
}
void loop() {
/*
lcd.setLed(0, 0, 5, true); //monitorius, eilute, stulpelis, ar ijungta
lcd.setLed(0, 0, 1, true);
lcd.setLed(0, 1, 0, true);
lcd.setLed(0, 1, 2, true);
lcd.setLed(0, 1, 4, true);
lcd.setLed(0, 1, 6, true);
lcd.setLed(0, 2, 0, true);
lcd.setLed(0, 2, 3, true);
lcd.setLed(0, 2, 6, true);
lcd.setLed(0, 3, 0, true);
lcd.setLed(0, 3, 6, true);
lcd.setLed(0, 4, 1, true);
lcd.setLed(0, 4, 5, true);
lcd.setLed(0, 5, 2, true);
lcd.setLed(0, 5, 4, true);
lcd.setLed(0, 6, 3, true);
*/
//nuo ko pradeti, iki kiek testi, kaip keisti
for(int y = 0; y<=7; y+=1)
{
lcd.setLed(0, y - 1, 6, false);
lcd.setLed(0, y - 1, 7, false);
for(int x = 0; x <=7; x += 1)
{
lcd.setLed(0, y, x, true);
delay(100);
lcd.setLed(0, y, x - 2, false);
}
}
lcd.clearDisplay(0);
}