Hi guys, sorry if this is in the wrong section, but I didn't see a more appropriate place. I have one of those 7 color LEDs and wanted to write a sketch where I could enter a number, 1-7 and have the LED show the corresponding color. There is no data sheet on this device, but I did find some info for it. It cycles through the colors based on pulses from a momentary switch. I wanted to implement the switch digitally in the maple realm. I'm not sure that it will work, but I think I can give a number of quick pulses and have it go to that color.
So I guess it needs to read from serialUSB a value, then turn that into a number of pulses on a digital pin which will activate a transistor. All I have are PNP transistors atm. Can I do this somehow without a transistor?
Any help would be appreciated. Pointing me to a sketch I can modify would help as would any basic electronics know-how. Thanks in advance!