Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void uloha15()
- {
- char login[] = {0, 0, 7, 1};
- int posun;
- while(1)
- {
- for (posun = 0; posun < 5; posun++)
- {
- for (int i = 0; i < 5; i++)
- {
- PORTC = BCD(login[0]);
- PORTB ^= (1 << 0 + posun);
- delay_ms(1);
- PORTB ^= (1 << 0 + posun);
- delay_ms(1);
- PORTC = BCD(login[1]);
- PORTB ^= (1 << 1 + posun);
- delay_01ms(1);
- PORTB ^= (1 << 1 + posun);
- delay_ms(1);
- PORTC = BCD(login[2]);
- PORTB ^= (1 << 2 + posun);
- delay_ms(1);
- PORTB ^= (1 << 2);
- delay_ms(1);
- PORTC = BCD(login[3]);
- PORTB ^= (1 << 3 + posun);
- delay_ms(1);
- PORTB ^= (1 << 3 + posun);
- delay_ms(1);
- }
- posun++;
- }
- }
- }
Add Comment
Please, Sign In to add comment