Help wanted: How can I change the variable PAUSE with DIP s...
Archiver
Posts: 46,084
Pull-down inputs 0 - 7 with 10K resistors (or use a SIP with common connected
to ground). Connect each input 0 - 7 to a DIP switch with the other side of
the DIP switches connected to Vdd. When you close a switch, the Stamp will
see a "1" on the associated pin.
You can read the switches at once using the InL variable.
PAUSE InL ' pause 0 - 255 milliseconds
Of course, you can add a multiplier to increase the delay.
PAUSE (InL * 8) ' pause 0 - 2040 milliseconds
HTH.
-- Jon Williams
-- Parallax
In a message dated 10/20/02 11:52:38 AM Central Daylight Time,
kai@u... writes:
> Hi stampers :-)
>
> Can anybody show me a sample how I change the variable PAUSE (time) with 8
> DIP switches?
>
[noparse][[/noparse]Non-text portions of this message have been removed]
to ground). Connect each input 0 - 7 to a DIP switch with the other side of
the DIP switches connected to Vdd. When you close a switch, the Stamp will
see a "1" on the associated pin.
You can read the switches at once using the InL variable.
PAUSE InL ' pause 0 - 255 milliseconds
Of course, you can add a multiplier to increase the delay.
PAUSE (InL * 8) ' pause 0 - 2040 milliseconds
HTH.
-- Jon Williams
-- Parallax
In a message dated 10/20/02 11:52:38 AM Central Daylight Time,
kai@u... writes:
> Hi stampers :-)
>
> Can anybody show me a sample how I change the variable PAUSE (time) with 8
> DIP switches?
>
[noparse][[/noparse]Non-text portions of this message have been removed]