Hallo,
ich hab ein Problem mit den kollisions tastern meines ASUROs: ich muss sie gedrückt halten damit er die schritte ausführt die er soll:
Was mache ich falsch?Code:#include "asuro.h" int main(void) { int n = 0, g = 0; Init(); MotorSpeed(255,250); while (n<100){ if(g>0){ MotorDir(RWD,RWD); Sleep(72000); MotorDir(RWD,BREAK); Sleep(72000); g=0; } MotorDir(FWD,FWD); unsigned char taste; taste = PollSwitch(); if (taste>0){ g=g+1; } } while(1); return 0; }
Lesezeichen