sweetboicz

atmel_test_code_01

Jun 8th, 2018
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <avr/io.h>
  2. #define F_CPU 8000000
  3. #include <util/delay.h>
  4.  
  5. int main(void)
  6. {
  7.     DDRB = 0xFF;
  8.     PORTB = 0x00;
  9.  
  10.     while (1)
  11.     {
  12.         PORTB ^= 0b00000001;
  13.         _delay_ms(200);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment