// Micro Robotics
// Example - Binary Counter
//
#include "LedControl.h"
#include "binary.h"
#define DIN 3
#define CS 4
#define CLK 5
#define DEV 1 //No of Devices
int x = 0;
LedControl lc=LedControl(DIN,CLK,CS,DEV);
void setup() {
lc.shutdown(0,false);
lc.setIntensity(0,8); // Set the brightness (0-15)
lc.clearDisplay(0);
}
void loop() {
lc.setRow(0,0,x); //ROW 0 COLUMN 0
delay(20);
lc.clearDisplay(0);
delay(20);
x++;
if (x == 255)
x = 0;
}