toggle switch

What is your background in C++ and electronics?

See this:
https://forum.arduino.cc/index.php?topic=261445.0