Advertisement
Guest User

Untitled

a guest
May 24th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. if( 1 == backlight )
  2. {
  3.     TCCR0=0x00;
  4. }
  5. else if( 2 == backlight || 3 == backlight )
  6. {
  7.     switch(stairs)
  8.     {
  9.         case 16:
  10.         {
  11.              TCCR0=0x01 , ped1  = 50, ped16=50;
  12.                  break;
  13.         }
  14.         case 15:
  15.         {
  16.              TCCR0=0x01 , ped1  = 50, ped15=50, ped16=0;
  17.              break;
  18.         }
  19.         case 14:
  20.         {
  21.              TCCR0=0x01 , ped1  = 50, ped14=50, ped15=0, ped16=0;
  22.              break;
  23.         }
  24.         //ну и так далее...... для каждого значения stairs
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement