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.41 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.  
  9. int main(void){
  10.  
  11. DDRA = 0xff;
  12. DDRE = 0xff;
  13.  
  14. PORTE = _BV(PE4); // ustawiamy pierwszy wyświetlacz
  15.  
  16.  
  17. for(;;){ //nieskonczona petla
  18. PORTA = PINB; //port A przyjmuje wartości pinu B
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement