Repeat loop using pin input
AJM
Posts: 171
This is a very simple question but maybe beneficial to others:
Can I base a repeat loop off of an input? What if the input changes?
Basically, this:
Anyway, let me know if this is correct or if I need to think about this differently
Can I base a repeat loop off of an input? What if the input changes?
Basically, this:
X := whatever.firstobject '' the first object sets variable 'X' to the pin that is high repeat until/while ina[noparse][[/noparse]X] == 0/1 rest of code .... ....
Anyway, let me know if this is correct or if I need to think about this differently
Comments
You can even put an assignment statement there since an assignment has a value (the value after assignment of the left side).