hey
so sollte es funktionieren !!!
hast n par while zu viel drin
Code:#include "asuro.h" int main(void) { Init(); while (1) { if (POllswitch==0){ MotorDir(FWD,FWD); MotorSpeed(200,0); StatusLED(YELLOW); FrontLED(OFF); Sleep(255); BackLED(ON,ON); } else{ MotorDir(FWD,FWD); MotorSpeed(250,250); StatusLED(GREEN); FrontLED(OFF); BackLED(OFF,OFF); } } return 0; }
Lesezeichen