I have no idea for this question,could anyone help me?
I deliberate it for a long time,and i am the beginer for basic stamp,here is the question:
Display the message "Please key in any number from 1 to 9 to make a LEDs on-offpattern" in debug terminal,if the input is in 1 to 9,then make a Subroutine called "PATTERN".and use the input number as the LEDs on-off pattern to turn on the corresponding LEDs and make a time delay.Repeat step 1.
Please help me![noparse][[/noparse]adore]
Display the message "Please key in any number from 1 to 9 to make a LEDs on-offpattern" in debug terminal,if the input is in 1 to 9,then make a Subroutine called "PATTERN".and use the input number as the LEDs on-off pattern to turn on the corresponding LEDs and make a time delay.Repeat step 1.
Please help me![noparse][[/noparse]adore]
![sad.gif](http://forums.parallax.com/images/smilies/sad.gif)
Comments
You need to work through the exercises in the "What's a Microcontroller?" tutorial (here: www.parallax.com/tabid/535/Default.aspx) and you'll need a copy of the "BASIC Stamp Syntax and Reference Manual" (here: www.parallax.com/tabid/440/Default.aspx).
You would use the DEBUG statement to display any messages and the DEBUGIN statement to get the answer. Typically, the HIGH and LOW statements would be used to turn an LED on and off (or off and on depending on how you connected it) and the PAUSE statement would provide a time delay. Look these up in the manual.