Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define F_CPU 16000000
- #include <avr/io.h>
- #include <util/delay.h>
- int main(void)
- {
- DDRB = 0xFF;
- PORTB |= (0 << 6);
- while(1)
- {
- PORTB |= (1 << 5);
- _delay_ms(1500);
- PORTB |= (0 << 5);
- _delay_ms(1500);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment