versuchs mal so:
Code:#include "asuro.h" int main(void){ Init(); while(1){ if(Pollswitch > 7) { StatusLED(RED); } else if(Pollswitch() > 0 && Pollswitch() < 7) { StatusLED(GREEN); } else { StatusLED(YELLOW); } } return 0; }
versuchs mal so:
Code:#include "asuro.h" int main(void){ Init(); while(1){ if(Pollswitch > 7) { StatusLED(RED); } else if(Pollswitch() > 0 && Pollswitch() < 7) { StatusLED(GREEN); } else { StatusLED(YELLOW); } } return 0; }
Lesezeichen