hallo.

ich habe mir um den umgang mit einem atmega8 zu erleichtern ein kleines testboard aufgebaut. port d 0 ist ein taster an 5V und an port c 5 ist eine LED.

mein "cot" lautet wie folgt:

$regfile = "m8def.dat"
$crystal = 1000000


Config Portc = Output
Config Portd = Input


If Portd.0 = 1 Then
Portc.5 = 1
Else
Portc.5 = 0
End If

was mache ich falsch?

MfG
M!ni M0nk3y