Unter der Annahme, daß das so konfiguriert ist:
Code:Config PinD.2 = Input 'pin C2 um phototransistor1 zum abfragen Config PinD.3 = Input 'pin C4 um phototransistor2 zum abfragen if Pind.2 = 1 then ............................ 'Schranke 1 end if if Pind.3 = 1 then ............................ 'Schranke 2 end if
Lesezeichen