Basic Stamp Programming Techniques
siuchuming
Posts: 2
2. Display the message Please Key in S to start in the Debug Terminal and prompt the
user to key in letter S. Display the message Wrong letter in the Debug Terminal
and prompt the user to key in again when the input is not S. If the input is True , then
display the message Right letter in the Debug Terminal.
3. Display the message Please Key a number (1 to 9) in the Debug Terminal and
prompt the user to key in. Display the message Number out of range in the Debug
Terminal and prompt the user to key in again when the input is less than 1 or larger than
9. If the input is True, then display the message Right Number in the Debug
Terminal.
4. Turn on two LEDs at P4 and P7 respectively and make a time delay ( 1 second ). Turn
on the buzzer for 0.5 second with two frequencies mixed. The two frequencies are
2500 and 3000 respectively, at P12 of the IVE StampBot. Make a time delay ( 2
second ). Turn off two LEDs at P4 and P7 respectively and make a time delay ( 1
second ).
5. Turn on two LEDs at P5 and P6 respectively and make a time delay ( 1 second ). Turn
on the motors of the IVE StampBot to make it turn around (either clockwise or
anti-clockwise) and then make a time delay ( 2 second ). Turn off the IVE StampBot
and then make a time delay ( 2 second). Turn off two LEDs at P5 and P6 respectively
and make a time delay ( 1 second ).
6. Display the message Please Key in any number from 1 to 9 to make a LEDs.
On-Off pattern in the Debug Terminal and prompt the user to key in a number. If the
input is True , then make a Subroutine called PATTERN. Use the input number as
the LEDs On-Off pattern to turn on the corresponding LEDs and then make a time delay
( 2 seconds ). Repeat step 1.
HELP ME...I don't know how to do these five questions.Plz help me...
user to key in letter S. Display the message Wrong letter in the Debug Terminal
and prompt the user to key in again when the input is not S. If the input is True , then
display the message Right letter in the Debug Terminal.
3. Display the message Please Key a number (1 to 9) in the Debug Terminal and
prompt the user to key in. Display the message Number out of range in the Debug
Terminal and prompt the user to key in again when the input is less than 1 or larger than
9. If the input is True, then display the message Right Number in the Debug
Terminal.
4. Turn on two LEDs at P4 and P7 respectively and make a time delay ( 1 second ). Turn
on the buzzer for 0.5 second with two frequencies mixed. The two frequencies are
2500 and 3000 respectively, at P12 of the IVE StampBot. Make a time delay ( 2
second ). Turn off two LEDs at P4 and P7 respectively and make a time delay ( 1
second ).
5. Turn on two LEDs at P5 and P6 respectively and make a time delay ( 1 second ). Turn
on the motors of the IVE StampBot to make it turn around (either clockwise or
anti-clockwise) and then make a time delay ( 2 second ). Turn off the IVE StampBot
and then make a time delay ( 2 second). Turn off two LEDs at P5 and P6 respectively
and make a time delay ( 1 second ).
6. Display the message Please Key in any number from 1 to 9 to make a LEDs.
On-Off pattern in the Debug Terminal and prompt the user to key in a number. If the
input is True , then make a Subroutine called PATTERN. Use the input number as
the LEDs On-Off pattern to turn on the corresponding LEDs and then make a time delay
( 2 seconds ). Repeat step 1.
HELP ME...I don't know how to do these five questions.Plz help me...
Comments
...
...
...
They are also in "What's a Microcontroller", which is somewhat easier to get, but unfortunately you'll have to (UGH) read, think, and achieve.