Hello everyone
how can i simulate readadc C.1,b0 in editor ver 6.1 ?????
For example, I would like to enter the value >80 and see if the program goes to led2
( I remember that in the old version 5. I could enter values and test the program )
Program:
main:
readadc C.1,b0 ; read value into b0
let dirsB = %11111111 ‘ switch pins 0 and 1 to outputs
if b0 < 5 then led0 ' if bigger than 5 jump
if b0 < 45 then led1 ' if bigger than 30 jump
if b0 < 80 then led2 ' if bigger than 60 jump
if b0 < 120 then led3 ' if bigger than 90 jump
if b0 < 170 then led4 ' if bigger than 120 jump
if b0 < 220 then led5 ' if bigger than 150 jump
if b0 < 255 then led6 ' if bigger than 180 jump
Regards Mejlby
how can i simulate readadc C.1,b0 in editor ver 6.1 ?????
For example, I would like to enter the value >80 and see if the program goes to led2
( I remember that in the old version 5. I could enter values and test the program )
Program:
main:
readadc C.1,b0 ; read value into b0
let dirsB = %11111111 ‘ switch pins 0 and 1 to outputs
if b0 < 5 then led0 ' if bigger than 5 jump
if b0 < 45 then led1 ' if bigger than 30 jump
if b0 < 80 then led2 ' if bigger than 60 jump
if b0 < 120 then led3 ' if bigger than 90 jump
if b0 < 170 then led4 ' if bigger than 120 jump
if b0 < 220 then led5 ' if bigger than 150 jump
if b0 < 255 then led6 ' if bigger than 180 jump
Regards Mejlby
Attachments

4.6 KB Views: 2
Last edited: