Shop OBEX P1 Docs P2 Docs Learn Events
some Question with i2p command — Parallax Forums

some Question with i2p command

playrobotplayrobot Posts: 4
edited 2009-03-24 12:52 in BASIC Stamp
If i have tow Ultrasonic Range Finder(SRF02) and BS2pe.

How should i use i2c this command to make two·Ultrasonic Range Finder·to display the result by turn.
·

Comments

  • Mike2545Mike2545 Posts: 433
    edited 2009-03-24 11:10
    You use pulsin and pulsout with the ping sonar sensor.

    Here is some example code from Parallax

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • AmaralAmaral Posts: 176
    edited 2009-03-24 12:52
    I2CIN Pin, SlaveID, { Address { \LowAddress }, } [noparse][[/noparse] InputData ]

    Values for Pin Pin = 0 Pin = 8
    I/O Pin
    Arrangement
    0: Serial Data (SDA) pin
    1: Serial Clock (SCL) pin
    OR
    8: Serial Data (SDA) pin
    9: Serial Clock (SCL) pin

    NOTE That this information was given by the same manual that you have !


    Now .. I don't understand your question, what do you mean by display the result by turn ???
Sign In or Register to comment.