File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
examples/Interrupts_subclassing Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ void setup() {
7474 myIMU.debug (Serial);
7575 myIMU.onInterrupt (print_data);
7676#if defined(ARDUINO_ARDUINO_NESSO_N1)
77- myIMU.begin (BOSCH_ACCEL_ONLY );
77+ myIMU.begin (BOSCH_ACCELEROMETER_ONLY );
7878#else
79- myIMU.begin (BOSCH_ACCEL_AND_GYRO );
79+ myIMU.begin ();
8080#endif
8181
8282 Serial.print (" Accelerometer sample rate = " );
Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ static void panic_led_trap(void)
374374 static int const LED_BUILTIN = 2 ;
375375#endif
376376
377+ #if !defined(ARDUINO_ARDUINO_NESSO_N1)
377378 pinMode (LED_BUILTIN, OUTPUT);
378379 while (1 )
379380 {
@@ -382,6 +383,7 @@ static void panic_led_trap(void)
382383 digitalWrite (LED_BUILTIN, HIGH);
383384 delay (100 );
384385 }
386+ #endif
385387}
386388
387389void BoschSensorClass::print_rslt (int8_t rslt)
You can’t perform that action at this time.
0 commit comments