Hab´s jetzt noch mal mit nur LED´s versucht, und es klappt auf einmal. Hab ja sonst nix berändert. Kann die Motorspannung was damit zu tun haben?
Code:
#include "asuro.h"

int main(void)
{
int p;
int a=400;

Init();
	

		while(1)
	{	StatusLED(GREEN);
		BackLED(OFF,OFF);
		
		while(PollSwitch()>=8)
		{		BackLED(ON,OFF);
			StatusLED(RED);
			for(p=1;p<200;p++)Sleep(255);
			StatusLED(YELLOW);
			for(p=1;p<a;p++)Sleep(255);
			StatusLED(OFF);
			for(p=1;p<300;p++)Sleep(72);
			a=a+20;
		}
		while((PollSwitch()<8)&&(PollSwitch()>1))
		{			BackLED(OFF,ON);
			StatusLED(YELLOW);
			for(p=1;p<200;p++)Sleep(255);
			StatusLED(RED);
			for(p=1;p<a;p++)Sleep(255);
			StatusLED(OFF);
			for(p=1;p<300;p++)Sleep(72);
			a=a-50;
		}
		while(a<200)
		{	
			FrontLED(ON);
			BackLED(ON,ON);
		}
	
	
	}
return 0;
}