Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <avr/io.h>
- #include <util/delay.h>
- int main(void)
- {
- DDRB = (1 << DDB5);
- while(1)
- {
- // LED on
- PORTB = (1 << DDB5);
- _delay_ms(1000);
- // LED off
- PORTB = 0;
- _delay_ms(1000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement