Help with Variables in Basic
September 21, 2008
This is a chunk of code I am using for my big tracks bot. I am using a irin command to accept inputs from a tv remote i.e. 2 is fwd, 4 is left, 6 is right etc. I am using #5 to goto my write command to enter the number of times I have hit each button onto my EEPROM chip. The Problem I am having is that the variable changes!! I have no idea why. Here is the code with some notes as to the problem. Any ideas?
low 1 : low 2
if b5 = 1 then fwd
if b5 = 4 then writeit
debug 'if I debug here I get the correct count for how many button pushes I did
debug 'if I debug here b8 has changed. HUH?
i2cslave %10100000, i2cslow, i2cbyte