raspberry pi - Python bus = smbus.SMBus(1) equivalent in C++? -
i'm writing code access i2c sensor in c++ on raspberry pi using wiringpii2c.
i need tell pi whether use smbus 0 or 1 (in case, bus 1).
i know in python, be:
bus = smbus.smbus(1)
do know c++ equivalent of be?
Comments
Post a Comment