Ich bin dafür, dass es so funktioniert:
$regfile = "m8def.dat"
$crystal = 1000000
Config Portc = Output
Config Pind.0 = Input
Portd.0=1
Do
If Portd.0 = 1 Then
Portc.5 = 1
Else
Portc.5 = 0
End If
Loop
Ich bin dafür, dass es so funktioniert:
$regfile = "m8def.dat"
$crystal = 1000000
Config Portc = Output
Config Pind.0 = Input
Portd.0=1
Do
If Portd.0 = 1 Then
Portc.5 = 1
Else
Portc.5 = 0
End If
Loop
Lesezeichen