Skip to content

Commit 0ebdf68

Browse files
authored
Update IKS01A3_S2LP_P2P_Demo.ino
Update sensor APIs
1 parent 6caefbb commit 0ebdf68

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/IKS01A3_S2LP_P2P_Demo/IKS01A3_S2LP_P2P_Demo.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,23 @@ void setup() {
114114
devSPI->begin();
115115

116116
AccGyr = new LSM6DSOSensor (&DEV_I2C);
117+
AccGyr->begin();
117118
AccGyr->Enable_X();
118119
AccGyr->Enable_G();
119120
Acc2 = new LIS2DW12Sensor (&DEV_I2C);
121+
Acc2->begin();
120122
Acc2->Enable_X();
121123
Mag = new LIS2MDLSensor (&DEV_I2C);
124+
Mag->begin();
122125
Mag->Enable();
123126
PressTemp = new LPS22HHSensor(&DEV_I2C);
127+
PressTemp->begin();
124128
PressTemp->Enable();
125129
HumTemp = new HTS221Sensor (&DEV_I2C);
130+
HumTemp->begin();
126131
HumTemp->Enable();
127132
Temp3 = new STTS751Sensor (&DEV_I2C);
133+
Temp3->begin();
128134
Temp3->Enable();
129135

130136
// Initialize M95640-R

0 commit comments

Comments
 (0)