Advertisement
Ostu

Untitled

Mar 14th, 2021
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<avr/io.h>
  2.  
  3. void spioszek(void){}
  4.  
  5. int main(void)
  6. {
  7. DDRA=0xFF;
  8.  
  9. float m;
  10.  
  11. int j;
  12.  
  13. int tab[]={1, 2, 4, 8, 16, 32, 64, 128};
  14.  
  15. while(1)
  16. {
  17. PORTA=0x01;
  18.  
  19. for(j=0; j<9; j++)
  20. {
  21. for(m=0; m<5000; m++){spioszek();}
  22.  
  23. PORTA=tab[j];
  24. }
  25.  
  26. }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement