(adsbygoogle = window.adsbygoogle || []).push({});
I'm back with more coding that won't work! Alright, in the code (below) I can get the first to motors to run, but the servo motor won't turn as its supposed to. I would also like (while 1==1) in there, but whenever I do only motor1 will turn. Any helps appreciated, thanks!
task main()
{
{
startMotor(motor1, 45);
wait(.3);
stopMotor(motor1);
wait(

;
}
{
startMotor(motor2, 45);
wait(.5);
startMotor(motor2, -45);
wait(.5);
}
{
if (lightSensor <720)
setServo (servo, 20);
}
{
if (lightSensor >720)
setServo (servo, 40);
}
}