Advertisement
abdullahkahraman

Untitled

Mar 1st, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. /*
  2. * YUNSA_Test.c
  3. *
  4. * Created: 01.03.2014 18:07:11
  5. * Author: abdullah
  6. */
  7.  
  8. #define F_CPU 7370000
  9. #include <avr/io.h>
  10. #include <util/delay.h>
  11.  
  12. FUSES = { .low = LFUSE_DEFAULT , .high = HFUSE_DEFAULT , };
  13.  
  14. int main(void)
  15. {
  16. DDRB = 0x08;
  17. PORTB = 0x00;
  18.  
  19. while (1)
  20. {
  21. PORTB = 0x08; _delay_ms(1000);
  22. PORTB = 0x00; _delay_ms(1000);
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement