Advertisement
Ostu

Untitled

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