First page Back Continue Last page Overview Graphics
HIGH and LOW Commands
HIGH and LOW Commands
- HIGH 3 – this command is used to set output P3 HIGH (5V). This can be used with any of the pins P0 – P15
- LOW 6 – this command is used to set output P6 LOW (0V). This can be used with any of the pins P0 – P15
PAUSE Command
- PAUSE 500 – this command causes the BASIC Stamp to stop executing the program for N ms (milliseconds).
- PAUSE 500 - Pause for 500 ms (0.5 seconds)
- PAUSE 4000 - Pause for 4 seconds
DO Command and LOOP Command
- DO and LOOP are used together to mark the beginning and end of an infinite loop in a program so that the instructions in the middle of the loop will be repeated indefinitely
- Example: (What does this do?
- DO - Start of loop
- DEBUG “Hello”
- PAUSE 5000
- LOOP - End of loop