Guest User

Untitled

a guest
Apr 25th, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #define F_CPU 16000000
  2.  
  3. #include <avr/io.h>
  4. #include <util/delay.h>
  5.  
  6. int main(void)
  7. {
  8. DDRB = 0xFF;
  9. PORTB |= (0 << 6);
  10.  
  11. while(1)
  12. {
  13. PORTB |= (1 << 5);
  14. _delay_ms(1500);
  15. PORTB |= (0 << 5);
  16. _delay_ms(1500);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment