command choice help
computon
Posts: 6
I am writing a Basic Stamp program where I need to know the value
on a pin. In some cases, I use rctime, when I have a range of possible
values. However, what do I use for the simpler case, when I just need
a "yes" or "no"--if the circuit is complete, I want a 1 ("yes"), and if it's
incomplete, I want a 0 ("no"). Can I use rctime for this, too? I do not
want to use resistors and capacitors for these circuits.
Thanks.
on a pin. In some cases, I use rctime, when I have a range of possible
values. However, what do I use for the simpler case, when I just need
a "yes" or "no"--if the circuit is complete, I want a 1 ("yes"), and if it's
incomplete, I want a 0 ("no"). Can I use rctime for this, too? I do not
want to use resistors and capacitors for these circuits.
Thanks.
Comments
Then run this little demo:
Note how using PIN and CON definitions make the program very easy to understand and maintain.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA