ich habe da mal ein code geschrieben aber irgend wie funktioniert er nicht richtig.


Config Portc.2 = Output
Config Portc.3 = Output
Config Pinc.0 = Input
Config Timer0 = Timer , Prescale = 8
Portc.0 = 1



Do
If Pinc.0 = 0 Then
Enable Timer0 : If Pinc.0 = 0 Then
On Timer0 Licht
Portc.3 = 1




Loop
End

Licht:
Portc.2 = 1

Return

weiss einner wie er richtig sein sollte

danke