Kod: Zaznacz cały
$crystal = 6000000
Dim Y As Byte
Dim Z As Byte
Y = 1
Z = 255
P2 = &B00000000
Do
wait 3
Y = 1
Do
If P2.0 = 1 Then
P2.7 = 1
Wait 1
P2.7 = 0
End If
Wait 200
Wait 250
Wait 250
Y = Y + 1
Loop Until Z = Y
Loop
End