Probiere es mal so: Code: #include "asuro.h" int main (void) { Init(); while(1){ if (PollSwitch()!=0) { MotorDir(RWD,RWD); MotorSpeed(140,140); } else { MotorDir(FWD,FWD); MotorSpeed(140,140); } } return 0; } mfG Philip
#include "asuro.h" int main (void) { Init(); while(1){ if (PollSwitch()!=0) { MotorDir(RWD,RWD); MotorSpeed(140,140); } else { MotorDir(FWD,FWD); MotorSpeed(140,140); } } return 0; }
Sowas in der Art hab ich auch hingekriegt, aber das bewirkt, dass sobald die tasten wieder frei sind, er nach vorn fährt. mein ziel wär es, das er nicht wieder nach vorn fährt. gruß frank
Foren-Regeln
Lesezeichen