Hallo,

das Programm bleibt in der for Schleife hängen, da keine richtige Abbruchsbedingug besteht!

Die Schleife müsste so aussehen:

for(b=0;b==3000;b++)

So funktioniert es:

Code:
#include "asuro.h" 

int main(void) 
{ 
Init(); 
int a,b; 

while(1) 
	{ 
	PollSwitch(); 
	a=PollSwitch(); 
	if(a==1) 
		BackLED(ON,ON); 
	if(a==2) 
		StatusLED(RED); 
	for(b=0;b==3000;b++) 
	Sleep(72); 	
	} 
return 0; 
}