Skip to content

Commit a58a9c9

Browse files
committed
IMU init Ok with LSM6DSOX
1 parent 10ad828 commit a58a9c9

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/tf4micro-motion-kit/tf4micro-motion-kit.ino

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ void rgbLedOff()
113113

114114
void rgbLedYellow()
115115
{
116-
// digitalWrite(LEDR, LOW);
117-
// digitalWrite(LEDG, LOW);
118-
// digitalWrite(LEDB, HIGH);
119116
neopixels.setPixelColor(0, 0xff, 0xff, 0);
120117
neopixels.show();
121118
}
@@ -417,11 +414,11 @@ void setup()
417414
neopixels.begin();
418415

419416
// Start IMU / Data provider.
420-
// if (!data_provider::setup())
421-
// {
422-
// Serial.println("Failed to initialize IMU!");
423-
// while (1) showErrorLed();
424-
// }
417+
if (!data_provider::setup())
418+
{
419+
Serial.println("Failed to initialize IMU!");
420+
while (1) showErrorLed();
421+
}
425422

426423
Bluefruit.autoConnLed(true);
427424
Bluefruit.configPrphBandwidth(BANDWIDTH_MAX);

0 commit comments

Comments
 (0)