Skip to content

Commit 36537fa

Browse files
cparatafpistm
authored andcommitted
Update BTLE_sensors_TimeOfFlight_demo.ino
Update sensor APIs to the new versions
1 parent db67033 commit 36537fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/Boards/STM32L475VG-DISCOVERY-IOT/BTLE_sensors_TimeOfFlight_demo/BTLE_sensors_TimeOfFlight_demo.ino

+4-1
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,15 @@ void setup() {
346346

347347
// Initlialize components.
348348
HumTemp = new HTS221Sensor (dev_i2c);
349+
HumTemp->begin();
349350
HumTemp->Enable();
350351

351352
PressTemp = new LPS22HBSensor(dev_i2c);
353+
PressTemp->begin();
352354
PressTemp->Enable();
353355

354-
sensor_vl53l0x = new VL53L0X(dev_i2c, PC6, PC7);
356+
sensor_vl53l0x = new VL53L0X(dev_i2c, PC6);
357+
sensor_vl53l0x->begin();
355358
sensor_vl53l0x->VL53L0X_Off();
356359
ret = sensor_vl53l0x->InitSensor(0x10);
357360
if(ret) {

0 commit comments

Comments
 (0)