-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
I have compiled and uploaded the three following sketches, on two different laptops:
In all cases, the examples are compiled and uploaded without error. However, there is no output to the Serial monitor at all.
However, if Serial.println("Hello! 1") and Serial.println("Hello! 2") is added to the SimpleAccelerometer.ino sketch as follows:
void setup() {
Serial.begin(9600);
while (!Serial);
Serial.println("Hello! 1");
if (!IMU.begin()) {
Serial.println("Failed to initialize IMU!");
while (1);
}
Serial.println("Hello! 2");
Serial.print("Accelerometer sample rate = ");
Serial.print(IMU.accelerationSampleRate());
Serial.println(" Hz");
Serial.println();
Serial.println("Acceleration in g's");
Serial.println("X\tY\tZ");
}
Then only Serial.println("Hello! 1") is printed to the Serial monitor.
The latest version of the library 2640521 was used, with the following command in Windows.
arduino-cli compile -u -p COM7 --fqbn arduino:samd:nano_33_iot --library ".\" ".\examples\SimpleGyroscope\SimpleGyroscope.ino"
I would expect the code to continue past !IMU.begin(), giving an error if it fails to initialise.
Metadata
Metadata
Assignees
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project