Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( 1 == backlight )
- {
- TCCR0=0x00;
- }
- else if( 2 == backlight || 3 == backlight )
- {
- switch(stairs)
- {
- case 16:
- {
- TCCR0=0x01 , ped1 = 50, ped16=50;
- break;
- }
- case 15:
- {
- TCCR0=0x01 , ped1 = 50, ped15=50, ped16=0;
- break;
- }
- case 14:
- {
- TCCR0=0x01 , ped1 = 50, ped14=50, ped15=0, ped16=0;
- break;
- }
- //ну и так далее...... для каждого значения stairs
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement