Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 13th, 2013  |  syntax: None  |  size: 0.38 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data