Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <avr\io.h> // Most basic include files
  2. #include <avr\interrupt.h> // Add thenecessary ones
  3. #include <avr\signal.h> // here
  4. //#define F_CPU 11059200U
  5. #include <util\delay.h>
  6.  
  7.  
  8. int main(void) {
  9.  
  10. DDRE = 0xff;
  11. DDRA = 0xff;
  12. PORTE = _BV(PE3);
  13. PORTA = 1;
  14.  
  15.  
  16. while(1) {
  17. _delay_ms(1000);
  18. PORTA = PORTA << 1 | PORTA >> 7;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement