I'm writing code to access an I2C sensor in C++ on a raspberry pi using wiringPiI2C.
I need to tell the pi whether to use smbus 0 or 1 (in my case, bus 1).
I know that in Python, this would be:
bus = smbus.SMBus(1)
Do you know what the C++ equivalent of this would be?