Shop OBEX P1 Docs P2 Docs Learn Events
need help writing code to BS2 to add — Parallax Forums

need help writing code to BS2 to add

DunnerDunner Posts: 6
edited 2007-12-08 20:52 in BASIC Stamp
I'm new to this racket i need help writng code to a BS2 stamp so that it will add each time it sees a high (low) on a certain pin.It must keep track and give total at the end.·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-08 20:52
    Have you been through the tutorial "What's a Microcontroller?"? That should show you the basics like responding to HIGHs and LOWs on pins. This is Basic that the Stamps use, so addition is just "A = A + 1". The Parallax Stamp Basic manual shows you how to use the editor and gives examples for declaring variables and the various types of variables (bytes and words).

    "help" implies assistance. If you have something that you've done and it either doesn't work as expected or you don't understand something specific, post a message showing it and someone will try to help you. Be sure to use the [noparse][[/noparse] code ] and [noparse][[/noparse] /code ] tags to keep your formatting (without the extra spaces around the "code" and "/code").

    Post Edited (Mike Green) : 12/8/2007 8:57:20 PM GMT
Sign In or Register to comment.