Advertisement
Guest User

Fad Comment maxEmbedded

a guest
Apr 7th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #ifndef F_CPU
  2. #define F_CPU 1000000UL // or whatever may be your frequency
  3. #endif
  4.  
  5. #include <avr/io.h>
  6. #include <util/delay.h>
  7. #define LEDG_ON() PORTD&=~(1<<PD5)
  8. int main(void)
  9. {
  10.  
  11. asm("sei");
  12.  
  13. LEDR_ON();
  14. _delay_ms(200);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement