Code:
$regfile = "attiny2313.dat"
$baud = 19200
$crystal = 3690000

Config Portb.2 = Output
Config Pinb.1 = Input
Dim Taster As Byte
Pinb.1 Alias Taster
Portb.2 Alias Led

Do
If Taster = 1 Then
Led = 1
Else 
Led = 0
End If
Loop
End
so solltes eigentlich gehn, wenn die portbelegung stimmt ^^ (also pb1 und pb2)