Examples: Removing MRAA reference from examples

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2017-09-28 18:23:28 -07:00
parent e8aeaff162
commit 6cc5c9691d
9 changed files with 27 additions and 13 deletions

View File

@ -28,13 +28,14 @@
#include "t6713.hpp"
#include "upm_utilities.h"
#define FT4222_I2C_BUS 0
#define FT4222_I2C_BUS 0
#define DEFAULT_I2C_BUS 0
int
main()
{
//! [Interesting]
upm::T6713 cO2Sensor(mraa_get_sub_platform_id(FT4222_I2C_BUS));
upm::T6713 cO2Sensor(DEFAULT_I2C_BUS);
while (true) {
uint16_t value = cO2Sensor.getPpm();