Yes, you feed them 5V, and maybe add a level shifter for the data line. In general you daisy-chain the LEDs, or buy them pre-wired. Two wires go past every LED for power and ground, then a third wire for data between each LED in the chain."ame" suggests using WS 2812 LEDs or similar. To use these LEDs would I not need to provide a separate 5 volt supply to each LED.? If I were to use several individual WS 2812 LEDs on a single GPIO pin how do I specify that I want led nos 1,3,5 & 7 to be lit and led no 2, 4 & 6 to be off? or would all WS 2812 LEDS on the same pin need to be lit or off?
Each LED is individually addressable, but you generally build a list in memory of how you want each LED to be, then when you are ready send the whole lot of data to the chain. If you want to change just one LED you change its value in the list in memory, then write the whole lot again. i.e. you don't actually address a single LED.
Statistics: Posted by ame — Fri Dec 20, 2024 7:21 pm