Page 1 of 1

switch to ground

Posted: Mon Oct 01, 2012 3:25 pm
by donald
Hello to all.
How do light up an led shutting circuit from uC at ground?
When the button is pressed to be ignited led.
Thank you in advance!

Re: switch to ground

Posted: Mon Oct 01, 2012 4:33 pm
by Benj
Hello,

Here is a quick program that will do what you want. I have basically done the same program twice, the first loop I used the switch and LED components via component macros and in the second loop I used I/O icons.

Re: switch to ground

Posted: Mon Oct 01, 2012 7:13 pm
by donald
Good evening Benj,
Thank you very, very much, works great, thank you once again.