Вы находитесь на странице: 1из 1

Handyboard Interactive C Programming

void main() {
int i = 0;
{
i = analog(5);
if (I > 0){
motor(2,100);
motor(4,100);
}
else if(i < 0){
motor(2,100);
motor(4,0);
sleep(0.5,);
}
else {
motor(2,0);
sleep(0.5,0);
motor(4,100);
}
}

Вам также может понравиться