Oh ha,
da hat SprinterSB nicht ganz unrecht.
Hiermal der neue Code in dem die LEDs auch wieder ausgeschaltet werden:
Code:#include "asuro.h" int main(void) { Init(); int a,b; while(1) { PollSwitch(); a=PollSwitch(); if(a==1) { BackLED(ON,ON); for(b=0;b!=3000;b++) Sleep(72); BackLED(OFF,OFF); } if(a==2) { StatusLED(RED); for(b=0;b!=3000;b++) Sleep(72); StatusLED(OFF); } } return 0; }
Lesezeichen