d.H. ich muss dort Binäre Zahlen eintragen?
Code:
if ((taste>0) && (PollSwitch()>0) & 0x000001) {StatusLED (GREEN);}
else if ((taste>0) && (PollSwitch()>0) & 0x000010) {StatusLED (RED);}
else if ((taste>0) && (PollSwitch()>0) & 0x000100) {FrontLED (ON);}
else if ((taste>0) && (PollSwitch()>0) & 0x001000) {BackLED (OFF,ON);}
else if ((taste>0) && (PollSwitch()>0) & 0x010000) {BackLED (ON,OFF);}
else if ((taste>0) && (PollSwitch()>0) & 0x100000) {BackLED (ON,ON);}
else {StatusLED(OFF);BackLED(OFF,OFF);FrontLED(OFF);}
hhmm leuchtet leider immer noch nur die grüne Status Leuchte (K1-K6).
EDIT//:
Ich habe es glaube ich. Mein Problem sind nur noch die Zahlen (0x01....).
Es funktioniert bei 0x01, 0x02, 0x04, 0x08 bei 0x16 und 0X32 nicht.
Kann mir jemand das erklären wie das mit den Zahlen da funktioniert?
Lesezeichen