The following code has the lights up just on LED at a time on the OI. For me, it is easier to see.
Joe J.
Quote:
PacketsMissed VAR delta_t
' put the following just after the serin command
PacketsMissed = delta_t +1
'I know the above is sort of "unclean" code because it is not obvious that a variable on the right side of the equation is also on the left, but for me it tells me that I have changed the definition of delta_t to something more to my liking. After I have incremented delta_t, I never refer to delta_t any more, only PacketsMissed
OUTS.lowbyte = 1 << PacketsMissed
'continue with code...
|