Shop OBEX P1 Docs P2 Docs Learn Events
count command help — Parallax Forums

count command help

science_geekscience_geek Posts: 247
edited 2007-06-12 20:09 in Robotics
how do i use the count command to add the number of times a switch is hit· and debug the number

Comments

  • Skywalker49Skywalker49 Posts: 172
    edited 2007-06-12 20:09
    http://www.parallax.com/dl/docs/prod/stamps/web-BSM-v2.2.pdf
    pag 149 .. all you want to know about the count command and connect your switch like this.
    It is all in the Parallax documents on their site (free downloads)

    .················ +5V
    .················· |
    .················ <
    .················ > 10 kOhm
    .················ <
    .················· |
    Pin
    |
    .················· |
    .·················· / switch switch open = 1, switch closed = 0
    .················· |
    .·················__ ground

    Good luck,
    Ed

    Post Edited (Skywalker49) : 6/12/2007 8:17:30 PM GMT
Sign In or Register to comment.