Wiring Pi
http://wiringpi.comWiringPi is a PIN based GPIO access library written in C for the BCM2835, BCM2836 and BCM2837 SoC devices used in all Raspberry Pi. versions.
How To Use GPIO on the Raspberry Pi with C++
www.digikey.com › en › makerJan 16, 2019 · Whereas C++ programs start running code found in the main function. In our main function, we start by calling the function “wiringPiSetup ()” which initiates the wiringPi library and prepares the Pi for using the GPIO. It is at this point that we also configure our two pins; the light output and the switch input. Copy Code.