It works with [] or () for the bit index variable, but the high & low commands won't work with a variable bit index.
For bit indexing port pins you need to assign a 0 or 1 to the pin like this;
Code:Main: for x = 0 to 7 portb.0[x] = 1 pauseus 200 portb.0[x] = 0 pauseus 200 next GOTO Main
Bookmarks