Ne, es liegt eher am Programm... dieses BackLED(ON,ON); ist auch nicht ganz unschuldig .
Naja, mit so einer endlosen while Schleife ums ganze Programm läufts ja einigermaßen:
Doofe PollSwitch Funktion...Code:#include "asuro.h"
int main (void)
{
Init();
while(1){
MotorDir(FWD,FWD);
MotorSpeed(130,130);
StatusLED(GREEN);
while(PollSwitch()>0){MotorDir(BREAK,BREAK);StatusLED(RED);FrontLED(ON);BackLED(OFF,ON);}
}
return 0;
}