SHARE
TWEET

Untitled

a guest Mar 13th, 2013 22 Never
  1. void alarm_go()
  2. {
  3.   for(i = 0; i < num_led_steps; i++)
  4.   {
  5.     for (j = 0; j <= maxBrightness; j++)
  6.     {
  7.       ShiftPWM.SetOne(led_on_order[i],j); //follow the order of turning lights on
  8.       if (led_off_order[i] != -1) //and the ones you want to turn off.
  9.       {
  10.         ShiftPWM.SetOne(led_off_order[i],maxBrightness-j);
  11.       }
  12.       delay(time_between_up);
  13.     }
  14.   }  
  15. }
RAW Paste Data
Top