// Afficheur 7219

// carte Arduino Nano

#include "LedController.hpp"

#define DIN 23
#define CS 5
#define CLK 18

LedController<1,1> lc;

void setup() {
  lc=LedController<1,1>(DIN,CLK,CS);
  lc.setIntensity(8); /* Set the brightness to a medium values */
  lc.clearMatrix(); /* and clear the display */
}

void loop() {
  lc.setDigit(0,0,3,false);
  lc.setDigit(0,1,1,false);
  lc.setDigit(0,4,4,false);
  lc.setDigit(0,7,0,true);
  delay(1000);

  lc.clearMatrix();
  delay(100);
}