Help with 18M2

davefish55

New Member
I have some code (working fine on an 18X) that uses a bit variable to hold a random number between 1 and 7 (using Hippy's "roll dice" code -- it flashes LEDs, one at a time, in random order).

I was then able to do this ...

high b0
pause 200
low b0
etc.

Now the editor squawks when I try

high B.b0

Any ideas on a quick fix?

Thanks.
 

davefish55

New Member
Thanks

The editor complaint went away, but the code still doesn't run.

I was focusing on the port addressing differences in my code conversion from the 18X to the 18M2 (based on reading some posts here). I'll spend some more time looking at the code.
 

hippy

Ex-Staff (retired)
Just using "HIGH b0" should work as B.0 has value 0 through B.7 having value 7. There must be something else in the code which isn't quite right.
 
Top