mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
VEML6070: Adding separate i2c contexts for separate addresses
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
@ -44,7 +44,7 @@ int main ()
|
||||
|
||||
//! [Interesting]
|
||||
// Instantiate an VEML6070 sensor on i2c bus 0
|
||||
upm::VEML6070* veml = new upm::VEML6070(0, VEML6070_CTRL_REG);
|
||||
upm::VEML6070* veml = new upm::VEML6070(0);
|
||||
while (shouldRun) {
|
||||
cout << "Retrieved UV value: " << veml->getUVIntensity() << endl;
|
||||
sleep(1);
|
||||
|
Reference in New Issue
Block a user