9

Simultaneous control of momentary LEDs

view full story
linux-howto

http://forum.allaboutcircuits.com – Hi all, Apologies if this sound trivial but currently I’m stuck in terms of figuring out the logic to complete what I suspect is a fairly easy task. I’m currently turning on my LEDs for a certain amount of time using the output_toggle() method as seen in my code below at the end of my post but I’d like to move on to turning on another relay when I’ve got the first LED currently engaged. So essentially simultaneous operation of the LEDs is what I’m after. Code: #include<18F2580.h> #include <stdlib.h> #include <string.h> #fuses XT,PUT,NOBROWNOUT,N (Embedded)