The IF bit I mean.
My 2010 brain has not worked very well after New Years Eve.
Code: Select all
' X = random byte value between 10 and 255
For I=1 to 255
If X<>0 Then
Dec(X)
OutPin = 1
Else
OutPin = 0
EndIf
Next
'Outpin' is declared elsewhere, its simply any old usable I/O pin as an ouput (e.g. portA.1)
If poss. I'd like to speed up the IF section. All variables are bytes.
Suggestions very welcome. Thanks.