How do I connect c++ to other accessories like a light bulb | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I connect c++ to other accessories like a light bulb

I would like to program a light on and of by typing "on" or "off" in cin

8th Feb 2017, 12:53 AM
Connor
Connor - avatar
2 Answers
0
I'm really not sure about what im gonna say but i think its this way: The programmer creates the software, when ur software is made to be implemented on other hardware besides pc, the electronics engineer designs the hardware where the software have control over the outputs in that hardware... (just like light bulbs... motors, etc)
8th Feb 2017, 1:10 AM
xyz xyz
xyz xyz - avatar
0
Google C++ GPIO. General Purpose Input Output. Look into using a Raspberry Pi or similar device. Or you can use C with an Arduino.
8th Feb 2017, 1:25 AM
ChaoticDawg
ChaoticDawg - avatar