Gast
#1848505
Hallo Zusammen, Ich will eine Schleife Programmieren die solange läuft bis Wartebit 1 ODER Wartebit 2 ein high Signal bekommt. Für ein Bit sieht das ja so aus: while ( !(WARTEPIN & (1 << WARTEBIT)) ) Mein Vorschlag wäre: while ( !(WARTEPIN & ( (1 << WARTEBIT1)) | ( 1 << WARTEBIT2 ))) das stimmt aber wohl nicht. Danke im vorraus