Hallo

Überleg mal der Wert wird größer wie null wenn du einen Taster drückst

#include "asuro.h"
int main (void)
{
Init();
int z;

MotorSpeed(110,100);

while(1)
{


if (PollSwitch() <= 1)
{MotorDir(FWD,FWD);
BackLED(ON,OFF);}
else
{MotorDir(FWD,RWD);
BackLED(OFF,ON);}
for(z=0 ; z < 230 ; z++){Sleep(216);}

MotorDir(FWD,FWD);





}

return(0);
}


Mach mal das rein


mfg