PDA

View Full Version : Help With Code



sparky
01-12-2006, 09:20 AM
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

winchman
01-12-2006, 03:34 PM
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