Hi, I'm working with Arduino Nicla Sense ME and I'm reading the following guide https://docs.arduino.cc/tutorials/nicla-sense-me/cheat-sheet. Specifically in the Standalone Mode section, I want to know the following things:
-
once the accelerometer is configured (BHI260AP), for example with function configure (1000, 0) --> Sample rate = 1000Hz, latency = 0 (None)
-
is it possible to read the acceleration values through the Data Ready Interrupt functionality? therefore not based on the following condition:
void loop()
{
static auto printTime = millis();// Update function should be continuously polled
BHY2.update();if (millis() - printTime >= 1000) {
printTime = millis();Serial.println(String("acceleration: ") + accel.toString());
}
}
complete code of Standalone: Standalone.ino
Thanks!