LED Matrix Arduino Nano
Testing a LCD Max7219 Matrix with an Arduino Nano, thank to http://tronixstuff.com/2013/10/11/tutorial-arduino-max7219-led-display-driver-ic/
#include <LedControl.h>LedControl lc=LedControl(12,11,10,1); // pin 12 is connected to the MAX7219 pin 1 // pin 11 is connected to the CLK pin 13 // pin 10 is connected to LOAD pin 12 // 1 as we are only using 1 MAX7219
void setup(){ lc.shutdown(0,false); lc.setIntensity(0,8); lc.clearDisplay(0); }
void loop(){ for (int row=0; row<8; row++) { for (int col=0; col<8; col++) { lc.setLed(0,col,row,true); lc.setLed(1,col,row,false); delay(25); } }
for (int row=0; row<8; row++) { for (int col=0; col<8; col++) { lc.setLed(0,col,row,false); lc.setLed(1,col,row,true); delay(25); } } }