3 state with two color led on one mcu port (by Kamen Pecov)
Hello.
I want to indicate 3 state with one two color led with one mcu port
sample like that:
when pres button 60 LED2(green) must be ON, all other is OFF, when temperature reach 60 LED2 must be OFF and LED3-ON.
Тhe same should be done for all others.
Does someone can tel me how must be creating that wit LDMicro
Thanks
(no subject) (by Ziggy)
Try:....
Select the pin which You wish to work with and make it output.
Connect two LEDS in series connect a 330 ohm resistor on free ends of LEDs.
Now You have
Resistor1 -> LED1anode
LED1cathode -> LED2anode
LED2cathode ->Resistor2
Now connect
free end of Resistor1 to +5V
free end of Resistor2 to 0V
both LEDs should light up
Now connect
Output pin -> junction of LED1an LED2
When output goes low LED1 will light up
When output goes high LED2 will light up
Good luck