Yesterday I got 2 Arduinos Nano 33 BLE, installed the IDE with ArduinoBLE and Arduino_LSM9DS1 library.
First, I run the blink example and all worked well, but then, I tried to run the following code and the IDE just keeps on a infinite "sending" state.
#include <Arduino_LSM9DS1.h>
float x, y, z, delta = 0.05;
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
if (IMU.accelerationAvailable()) {
IMU.readAcceleration(x, y, z);
Serial.println(x);
delay(1000);
}
}
On the second arduino, after uploading the code, it gets disconnected (disappears from device manager) and the only way to get it back is to click 2 times on the reset button.
The error is "Board at COM4 is not available"
Am I doing something wrong?