How can i control a specific led(like the first 2 leds on the strip) from the whole strip, like a foreach thing?
Any help will be acceptable and i will be thankful about each message, even if it not helpful
How can i control a specific led(like the first 2 leds on the strip) from the whole strip, like a foreach thing?
Any help will be acceptable and i will be thankful about each message, even if it not helpful
You need to cite - with a Web link - what LED strip you have in mind,
It does not sound that you have an addressable led strip. In which case the answer will be "you can't".
But as indicated by Paul__B, provide a link so we can make sure.
If the LED strip is not addressable (WS281x, SK6812, APA102, etc), you can only control the color of all LEDs at once. Addressable LEDs contain a processor in each LED that interprets the data sent to it, sets it's color, and forwards the rest to the next LED. normal (non-addressable) LEDs have no such feature, and the strips are just a bunch of LEDs and series resistors, all connected together.
K thanks everyone!