#include "asuro.h"
#define FULL_L 250
#define FULL_R 220
void MotorFwd(void)
{
MotorDir(FWD,FWD);
MotorSpeed(FULL_L,FULL_R);
}
void MotorRwd(void)
{
MotorDir(RWD,RWD);
MotorSpeed(FULL_L,FULL_R);
}
void MotorRwdL(void)
{
MotorDir(RWD,RWD);
MotorSpeed(FULL_L,0);
}
void MotorRwdR(void)
{
MotorDir(RWD,RWD);
MotorSpeed(0, FULL_R);
}
void MotorStop(void)
{
MotorSpeed(0,0);
}

int main(void)
{
unsigned char t1, t2;

Init();
while(1)
{
t1 = PollSwitch();
t2 = PollSwitch();
if(t1 == 0 && t2 == 0)
{
MotorFwd();
FrontLED(ON);
BackLED(OFF,OFF);
}
else if (t1 && t2 && t1 == t2)
{
MotorStop();
if(t1 & 0x07)
{
MotorRwdL();
FrontLED(OFF);
BackLED(ON,OFF);
}
if (t1 & 0x3
{
MotorRwdR();
FrontLED(OFF);
BackLED(OFF,ON);
}
Sleep(255);
}
}
return 0;
}


Das ist das Programm was ich habe.
Diese habe ich ohne asuro.c und asuro.h auf zwei Asuros geflahst und beide funktionieren nicht. Dann muss wohl ein Fehler im Programm sein.
Beim compilieren gab es kein Fehler.
Ich benutze das makefile von der cd.