



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































DDRB = 0xFF;
// PortB is all outputs
PORTB = 0x00;
// turn off all the lights
while(1)
// do forever..
PORTB = 0b10000000;PORTB = 0b01000000;PORTB = 0b00100000;PORTB = 0b00010000;PORTB = 0b00001000;PORTB = 0b00000100;PORTB = 0b00000010;PORTB = 0b00000001; } void main(void){ }
DDRB = 0xFF;
// PortB is all outputs
PORTB = 0x00;
// turn off all the lights
while(1)
// do forever..
PORTB = 0b10000000;PORTB = 0b01000000;PORTB = 0b00100000;PORTB = 0b00010000;PORTB = 0b00001000;PORTB = 0b00000100;PORTB = 0b00000010;PORTB = 0b00000001; } }
DDRB = 0xFF;
// PortB is all outputs
PORTB = 0x00;
// turn off all the lights
while(1)
// do forever..
PORTB = 0b10000000;PORTB = 0b01000000;PORTB = 0b00100000;PORTB = 0b00010000;PORTB = 0b00001000;PORTB = 0b00000100;PORTB = 0b00000010;PORTB = 0b00000001; } void main(void){ }
DDRB = 0xFF;
// PortB is all outputs
PORTB = 0x00;
// turn off all the lights
while(1)
// do forever..
PORTB = 0b10000000;PORTB = 0b01000000;PORTB = 0b00100000;PORTB = 0b00010000;PORTB = 0b00001000;PORTB = 0b00000100;PORTB = 0b00000010;PORTB = 0b00000001; } }