Since my download of M2 software I seem intent on finding confusing data in the pdfs, as evidenced by some of my recent posts. Well, here's another one pasted from page 171 of Picaxe_Manual2.pdf titled 'Basic Commands'.
Note the "read value into b1" comment. Besides this typo I think the use of "debug" in this example just muddy's the water and has no relation to the command anyway.
While I'm on the subject, how do I generate a word variable like 1.25 using the simulator? I can only generate a byte variable in steps of 5 using the controls provided.
Code:
main:
readadc10 C.4,w1 ; read value into b1
debug ; transmit to computer
pause 200 ; short delay
goto main ; loop back to start
While I'm on the subject, how do I generate a word variable like 1.25 using the simulator? I can only generate a byte variable in steps of 5 using the controls provided.