Example #1
0
void setup() {

  lc.shutdown(0,false);
  lc.setIntensity(1,80);
  lc.clearDisplay(0);
  myservo.write(180);
  myservo.attach(servopin);
}
Example #2
0
LedControl  initMatrizLeds(){

  LedControl lc = LedControl(DIN,CLK,CS,NUM_MATRIX);
  lc.shutdown(0,false);// turn off power saving, enables display
  lc.setIntensity(0,1);// sets brightness (0~15 possible values)
  lc.clearDisplay(0);// clear screen 
  
  return lc;
}
Example #3
0
/*
 This time we have more than one device.
 But all of them have to be initialized
 individually.
 */
void setup()
{
	lc=LedControl(12,11,10,1);

	/*
     The MAX72XX is in power-saving mode on startup,
     we have to do a wakeup call
     */
    lc.shutdown(0,false);
    /* Set the brightness to a medium values */
    lc.setIntensity(0,8);
    /* and clear the display */
    lc.clearDisplay(0);
}