Hallo SRT

Die von PollSwitch() gelieferten Werte sind nicht immer korrekt, deshalb sollte man die Taster mehrfach überprüfen:

Code:
#include "asuro.h"

unsigned char taste1, taste2;

int main(void){
   Init();
   MotorDir(FWD,FWD);
	MotorSpeed(120,120);
	StatusLED(YELLOW);

   do
	{
   	taste1=PollSwitch();
   	taste2=PollSwitch();
	}
	while((taste1==0) || (taste2==0));

   MotorSpeed(0,0);
   MotorDir(BREAK,BREAK);
   StatusLED(RED);
   while(1);
   return(0);
}
Gruß

mic