Gast
#441399
Hallo, Ich versuche eine LED (an PC0) zum leuchten zu bringen, wenn am PA0 eine Spg. >= 2V liegt.(Vcc = 5V) Kann ich das so codieren: Config Portc.0 = Output Config Pina.0 = Input Do If Pina.0 >= 10 Then '10 = 2V Portc.0 = 1 Else Portc.0 = 0 End If Loop End Oder muss ich das mit einem AD Wandler machen? julian