Shop OBEX P1 Docs P2 Docs Learn Events
PIR Sensor code — Parallax Forums

PIR Sensor code

alstonm1alstonm1 Posts: 1
edited 2009-07-09 14:32 in Accessories
Hello, I am looking for a basic code to start a process. The process is set-up to start after I download it to the BS2 BOE, but I would like to actually use a button and/or the PIR sensor to actuate the process. I'll appreciate any help I can get.

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-04-22 21:45
    You'll just have a loop at the beginning of your program waiting until one of the inputs (PIR or button) is true. Take a look at What's a microcontroller (pdf) to figure out how to program.
  • JuliantoJulianto Posts: 5
    edited 2009-07-09 14:32
    hi SLRM do have some sample code BS2p40 for PIR


    Thanks
    Julianto
Sign In or Register to comment.