Ja das hab ich jetzt schon gemacht - jedoch auch ohne Ergebnis - er fährt einfach nicht los:
Code:#include "asuro.h" int i; int main(void) { Init(); while(1); if (PollSwitch()==0 && PollSwitch()==0 && PollSwitch()==0 && PollSwitch()==0) { MotorDir(FWD,FWD); MotorSpeed(200,200); BackLED(ON,ON); StatusLED (GREEN); } else { MotorDir(BREAK,BREAK); MotorSpeed(0,0); BackLED(OFF,OFF); StatusLED(RED); MotorDir(FWD,BREAK); MotorSpeed(100,0); } return(0); }
Lesezeichen