Habe jetzt die Taster kalibriert und bekomme dabei den Wert 63 angezeigt. In der myasuro.h stand 62L, habe es auf 63L geändert.
Mein jetziger Code:
Probleme:Code:unsigned char sw1, sw2; while(1){ sw1 = PollSwitch(); sw2 = PollSwitch(); if(sw1==sw2){ if (sw1 & 0b100000){ StatusLED(RED); } else if (sw1 & 0b010000){ StatusLED(YELLOW); } else if (sw1 & 0b001100){ StatusLED(GREEN); } else if (sw1 & 0b000010){ BackLED(ON,ON); } else if (sw1 & 0b000001){ StatusLED(OFF); BackLED(OFF,OFF); } }
K5 -> BackLed's an, StatusLed aus
BackLed's an -> K2 wird betätigt = StatusLed grün oder K1 wird betätigt = StatusLed gelb oder K5 wird betätigt = BackLed's gehen aus oder bleiben an
Hoffe mein Problem ist verständlich![]()







Zitieren

Lesezeichen