Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #ifndef F_CPU
  2. #define F_CPU 1000000UL
  3. #endif
  4.  
  5. #include <avr/io.h>
  6. #include <util/delay.h>
  7. int main(void)
  8. {
  9. DDRA=0x01;
  10. while(1)
  11. {
  12. PORTA=0x01;
  13. _delay_ms(1000);
  14. PORTA=0x01;
  15. _delay_ms(1000);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement