Shop OBEX P1 Docs P2 Docs Learn Events
A bit of help please — Parallax Forums

A bit of help please

newnew Posts: 6
edited 2011-07-05 19:40 in General Discussion
As I write this I am a student in a technial school in PA. This term we are doing digital circuits with a new instructor that has no knowledge on much of anything useful. For our lab class we are working with Parallax Basic Stamp. Our final project we are doing a ech a sketch clock run sololy by the basic stamp. We are using the pulsout command to make letters by running servos which is working pretty good. We are running into a bit of trouble with all 10 characters that can be displayed we don't have enough room to have that and a program to tell the stamp which numbers to write. With having to do all of our own research on how to do this and us being begginners I would like it if someone could point me in the corrent direction and maybe give me some options on how to have a program tell the stamp what time it is and what numbers to display. Thanks for your time in this matter.
Here is our number one program:
' {$STAMP BS2}' {$PBASIC 2.5}counter VAR WordDEBUG "1", CRFOR Counter = 1 TO 25 PULSOUT 4, 400 PAUSE 35 NEXTGOSUB servo_pauseDEBUG "2", CRFOR counter = 1 TO 5 PULSOUT 4, 900 PAUSE 30 NEXTGOSUB servo_pause DEBUG "3", CRFOR counter = 1 TO 13 PULSOUT 15, 900 PAUSE 30NEXTGOSUB servo_pauseDEBUG "4", CRFOR counter = 1 TO 2 PULSOUT 4, 900 PAUSE 30NEXTGOSUB servo_pauseDEBUG "5", CRFOR counter = 1 TO 13 PULSOUT 15, 400 PAUSE 30NEXTGOSUB servo_pauseDEBUG "6", CRFOR counter = 1 TO 5 PULSOUT 4, 900 PAUSE 30NEXTENDservo_pause: DEBUG "Blank", CR FOR Counter = 1 TO 10 PULSOUT 14, 500 PAUSE 30 NEXTRETURN

Comments

  • kwinnkwinn Posts: 8,697
    edited 2011-07-05 17:03
    Welcome to the forum. Try reposting your code by putting it between the words {code} and {/code} using square brackets instead of curly braces.
     your code here
     so it is more readable
    
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2011-07-05 19:40
    BTW, you might get more and better support in the Basic Stamp area. It is about finding people that are working primarily with Basic Stamps.
Sign In or Register to comment.