Shop OBEX P1 Docs P2 Docs Learn Events
Help with subroutine using Basic Stamp Software.. — Parallax Forums

Help with subroutine using Basic Stamp Software..

4fun4fun Posts: 3
edited 2008-12-13 15:21 in BASIC Stamp
Hello,

This is my first time using the basic stamp software and I need help creating subroutines for the description of the attached file.

Can anybody let me know how would I write subroutines for the attached file?

Thanks,

Pete

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2008-12-13 13:03
    Pete,

    You've go the hard part done by having the flow chart.

    Have you done any coding yet? Thats the best way to learn and the Stamp doesn't mind being re-programmed.

    Take the 3 rectangular blocks just above "Lock Doors" and write the code to carry out that function. Do it for each block. Those chunks of code will essentially be your subroutines.

    The rest of it will be in the main body with a few IF-THEN statements.

    Show us what you can do and there will be lots of help for specific problems.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-13 15:21
    You need at least two manuals / tutorials which can be downloaded (with sample code) for free or you can buy them in paper form.
    The Basic Stamp Syntax and Reference Manual: www.parallax.com/tabid/440/Default.aspx
    What's a Microcontroller?: www.parallax.com/tabid/535/Default.aspx

    These will teach you how to program the Stamps and how to accomplish basic things like sensing a switch setting or turning an LED on and off.
Sign In or Register to comment.