So jetzt brauch ich nochmals eure Hilfe!
Hier mein Code:
Theoretisch sollte er jetzt losfahren - 2 Sekunden lang fahren und dann bremsen. Macht er aber nicht, sondern nach dem Booten leuchtet sofort die rote LED!Code:#include "asuro.h" int i; int main(void) { Init(); MotorDir(FWD,FWD); MotorSpeed(200,200); StatusLED(GREEN); for(i=0; i>2000; i++) Sleep(72); MotorDir(BREAK,BREAK); MotorSpeed(0,0); StatusLED(RED); while(1); return(0); }
Vielen Dank nochmal!
Lesezeichen