Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<avr/io.h>
- void spioszek(void){}
- int main(void)
- {
- DDRA=0xFF;
- float m;
- int j;
- while(1)
- {
- PORTA=0x01;
- for(j=0; j<8; j++)
- {
- for(m=0; m<6000; m++){spioszek();}
- PORTA |= PORTA<<1;
- }
- for(j=8; j>0; j--)
- {
- for(m=0; m<6000; m++){spioszek();}
- PORTA &= PORTA<<1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement