der code müsste so aussehen:
Code:
#include "asuro.h"

int main(void){
   int c=0;
   unsigned char b;
   Init();
   while(1){
   PollSwitch();
   PollSwitch();
   PollSwitch();
   b=PollSwitch();
   MotorDir(FWD,FWD);
   MotorSpeed(120,120);
   if (b>0){
      MotorDir(RWD,RWD);
      MotorSpeed(120,120);
      c=0;
      for(c=0;c<282;c++){
      Sleep(255);
      MotorDir(RWD,FWD);
      MotorSpeed(120,120);
      c=0;
      for(c=0;c<282;c++){
      Sleep(255);
      }
   }
   }
   MotorDir(FWD,FWD);
   MotorSpeed(120,120);
   }
   return 0;
   }
so das müsste funktionieren...