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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -