View Full Version : assigning 4 seperate leds from 1 output pin
05-21-2006, 06:05 AM
In experiment three of the stampworks book,4 leds flash at the same time. I want to make the leds work seperatley, but they all work at the same time, even though I assigned each pin seperatly in the programming.·Is this because of the way the breadboard is conneted, or does each led need·a seperate output pin from the bs2 stamp?
05-21-2006, 06:21 AM
If you have all 4 LEDs connected to one pin, they'll all go on and off at the same time. If you want to control them independently, you'll have to connect them to separate pins.
OS-X: because making Unix user-friendly was easier than debugging Windows
05-21-2006, 10:24 AM
If you only wanted one light on at a time, you could do it with two pins and some "glue" chips. Using NAND gates and inverters it would be easy to turn on one of the four LEDs depending on the ON/OFF combinations you'd have with two pins.