So ich wollte jetzt erstma kleiner anfangen, da ich des mitm poti net hinbekomm. Ich wollts jetzt so machen, dass wenn ich den taster drücke einmal, dass dann die blitzer losgehen. Aba irgendwie funzt des net. Hier mal mein Programmcode von bascom:
Des blinkt irgendwie von anfang an............Code:$regfile = "m8def.dat" $crystal = 3686400 Config Portb = Output Config Portd = Input Do A: If Pind.2 = 0 Then Goto B Else Goto C End If B: Portb.1 = 1 Waitms 50 Portb.1 = 0 Waitms 70 Portb.1 = 1 Waitms 50 Portb.1 = 0 Waitms 70 Portb.1 = 1 Waitms 50 Portb.1 = 0 Waitms 70 Portb.1 = 1 Waitms 50 Portb.1 = 0 Waitms 400 C: Loop
MFG
Nrg







Zitieren

Lesezeichen