void left (void)
{
PORTB = 0X01; delay_ms(5);
PORTB = 0X03; delay_ms(5);
PORTB = 0X02; delay_ms(5);
PORTB = 0X06; delay_ms(5);
PORTB = 0X04; delay_ms(5);
PORTB = 0X0C; delay_ms(5);
PORTB = 0X08; delay_ms(5);
PORTB = 0X09; delay_ms(5);
PORTB = 0X01; delay_ms(5);
}
void right (void)
{
PORTB = 0X01; delay_ms(5);
PORTB = 0X09; delay_ms(5);
PORTB = 0X08; delay_ms(5);
PORTB = 0X0C; delay_ms(5);
PORTB = 0X04; delay_ms(5);
PORTB = 0X06; delay_ms(5);
PORTB = 0X02; delay_ms(5);
PORTB = 0X03; delay_ms(5);
PORTB = 0X01; delay_ms(5);
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?