Advertisement
dzieciol

mikrokontrolery 1

Oct 6th, 2017
1,449
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <avr/io.h>
  2. #include <util/delay.h>
  3. int main(){
  4.     DDRA = 0xff;
  5.     PORTA = 0x01;
  6.     _delay_ms(1000);
  7.     PORTA = 0x00;
  8.     _delay_ms(1000);
  9.     PORTA = 0x01;
  10. }
Advertisement
RAW Paste Data Copied
Advertisement