mg

Mohammad Walid Matar

#include <LedControl.h>


LedControl lc =LedControl(5, 7, 6,2);


void setup() {

  lc.shutdown(0,false);

  lc.setIntensity(0,8);

  lc.clearDisplay(0);


 lc.shutdown(1,false);

  lc.setIntensity(1,8);

  lc.clearDisplay(1);

}


  void loop(){

//EYE ONE

lc.setRow(0,0,B00000000);

lc.setRow(0,1,B00111100);

lc.setRow(0,2,B01000010);

lc.setRow(0,3,B10011001);

lc.setRow(0,4,B10011001);

lc.setRow(0,5,B01000010);

lc.setRow(0,6,B00111100);

lc.setRow(0,7,B00000000);


 //EYE TWO

lc.setRow(1,0,B00000000);

lc.setRow(1,1,B00111100);

lc.setRow(1,2,B01111110);

lc.setRow(1,3,B11000011);

lc.setRow(1,4,B10000001);

lc.setRow(1,5,B00000000);

lc.setRow(1,6,B00000000);

lc.setRow(1,7,B00000000);