I see errors (late at night). In the last asm routine bitwise rotate
should be index = 0 to 7 (not 0 to 5),
and I did not increment the “selected” value.
The selected value tells you what sensor you’re looking at while you’re pointed at zero.Code:IF button presses = 1 then ‘should also include selected = selected + 1 if selected > 5 then selected = 0 endif gosub rotatearray endif
The first thing you should do is learn to start counting from zero like all computers and programming languages do.
Then only when it comes to displaying something like “sensor 0 is reading 32 degrees” to the Humans,
is the point you increment everything by 1 to make it readable to the outside world of Humans.




Bookmarks