Shop OBEX P1 Docs P2 Docs Learn Events
design 59 second timer — Parallax Forums

design 59 second timer

jackjack Posts: 2
edited 2005-03-27 04:43 in Learn with BlocklyProp
I am working in the WAM book page 183 Project problem 3· . Can get the One button to cycle through 0 to 9·. Can press button two to do the DP with the 0 to 9 .· But how do i capture the current value with button two and· press both to start the timer......???

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-03-27 04:43
    Jack,

    ·· If your buttons are connected to a group of pins on the same port, you could use INA, for example, to read 4 pins at once.· Then you could compare that to a number.· For example, if you had switches connected to P0 and P1, you could use:

    IF INA = %0011 THEN Start_Countdown
    

    ·· BTW, you should post the version of the book you're·using when asking questions, since different revisions have things on different pages.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.