Is it possible to act on a single bit within a byte, depending upon the value of a counter? For example, a simple chaser could be made using the code:
HIGH portb.0
HIGH portb.1
HIGH portb.2
HIGH portb.3
However, it would be much better if this could be done with a counter. Something along the lines of:
For counter = 0 to 3
HIGH portb.counter
NEXT
PBP wont compile this. What would the code to do this look like? I was thinking of replacing .counter with (counter) but as far as I am aware, this only works with arrays. I tried it anyway, and it compiled, but as expected it didn't work.
Ideas?
Many thanks,
Matthew
Bookmarks