Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Hello, im creating an array of lights and i want to know if there was a way i can control the lights individuality using a program i create using c++ ive tried such sites as Google but nothings come up i just want to weather its possible and if so

0

Hello, im creating an array of lights and i want to know if there was a way i can control the lights individuality using a program i create using c++ ive tried such sites as Google but nothings come up i just want to weather its possible and if so

0
Chris Covan

You bet it possible. I don’t know what kind of machine you are running, but if I could make a suggestion try using a raspberry pi. It’s a small computer with built in gpio pin which you can control and there are hundreds of thing you can do with the raspberry pi when you are done with the light matrix. There is also very large community where you can get all the help you need. And best of all the raspberry pi is only approx. 35 USD. 

0
Saad Khan

Yes you can control the lights/LEDs using C++ code, for that you need to use a microcontroller or arduino or single board computers such as raspberry pi(requires python). All these devices have input and output pins. You have to connect the LEDS with the output and if you want to add inputs you can add that too if you want your inputs to control your LEDs. Or you can simply connect LEDs on output, next you have to write a C++ code for arduino or a microcontroller such as 8051 microcontroller. Now your code can control the LEDs.