mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 02:11:15 +03:00
Examples: Removing MRAA reference from examples
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
@ -28,13 +28,14 @@
|
||||
#include "si1132.hpp"
|
||||
#include "upm_utilities.h"
|
||||
|
||||
#define FT4222_I2C_BUS 1
|
||||
#define FT4222_I2C_BUS 1
|
||||
#define DEFAULT_I2C_BUS 0
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
//! [Interesting]
|
||||
upm::SI1132 lightSensor(mraa_get_sub_platform_id(FT4222_I2C_BUS));
|
||||
upm::SI1132 lightSensor(DEFAULT_I2C_BUS);
|
||||
while (true) {
|
||||
float value = lightSensor.getVisibleLux();
|
||||
std::cout << "Light level = " << value << " lux" << std::endl;
|
||||
|
Reference in New Issue
Block a user