Shop OBEX P1 Docs P2 Docs Learn Events
Help With Code — Parallax Forums

Help With Code

sparkysparky Posts: 3
edited 2006-01-12 08:34 in BASIC Stamp
I have been experimenting with P Basic commands from the "What is a Microcontroller" book and would like to know how to use 4 inputs so that each blinks its own LED at a rate of one half second on and one half second off.· Each input will be triggered by V+.· I would also like to use any or all of these same inputs to start an R/C timing function such as is found on page 145.· I am using the BS2 microcontroller.· Thank you for your help.

Post Edited By Moderator (Chris Savage (Parallax)) : 1/12/2006 5:11:26 AM GMT

Comments

  • winchmanwinchman Posts: 22
    edited 2006-01-12 08:34
    I think you can use the code on pages 81 and 82 for doing the first part of your question. Have a separate IF-THEN-ELSE-ENDIF for each of the four inputs, and assign a different output for each.

    Roger
Sign In or Register to comment.