hendriawan

Modul2-Percobaan 1- BlinkyLED

Mar 18th, 2019
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <avr/io.h>
  2. #include <util/delay.h>
  3. int main (void) {
  4.     DDRA=0xFF;
  5.     while(1)
  6.     {
  7.         PORTA=0xFF;
  8.         _delay_ms(400);
  9.         PORTA=0x00;
  10.         _delay_ms(400);
  11.  
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment