File tree Expand file tree Collapse file tree 7 files changed +14
-13
lines changed
libraries/CurieIMU/examples Expand file tree Collapse file tree 7 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ unsigned long interruptsTime = 0; // get the time when free fall event is det
1616
1717
1818void setup () {
19- Serial.begin (9600 );
20- while (!Serial); // wait for the serial port to open
19+ Serial.begin (9600 ); // initialize Serial communication
20+ while (!Serial) ; // wait for serial port to connect.
2121
2222 /* Initialise the IMU */
2323 CurieIMU.begin ();
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ unsigned long loopTime = 0; // get the time since program started
1515unsigned long interruptsTime = 0 ; // get the time when motion event is detected
1616
1717void setup () {
18- Serial.begin (9600 );
19- while (!Serial); // wait for the serial port to open
18+ Serial.begin (9600 ); // initialize Serial communication
19+ while (!Serial) ; // wait for serial port to connect.
2020
2121 /* Initialise the IMU */
2222 CurieIMU.begin ();
Original file line number Diff line number Diff line change 1313boolean blinkState = false ; // state of the LED
1414
1515void setup () {
16- Serial.begin (9600 );
17-
16+ Serial.begin (9600 ); // initialize Serial communication
17+ while (!Serial) ; // wait for serial port to connect..
1818 /* Initialise the IMU */
1919 CurieIMU.begin ();
2020 CurieIMU.attachInterrupt (eventCallback);
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ long lastStepCount = 0; // step count on previous polling check
2525boolean blinkState = false ; // state of the LED
2626
2727void setup () {
28- Serial.begin (9600 );
28+ Serial.begin (9600 ); // initialize Serial communication
29+ while (!Serial) ; // wait for serial port to connect.
2930 // pinMode(13, OUTPUT);
3031 // intialize the sensor:
3132 CurieIMU.begin ();
Original file line number Diff line number Diff line change 1111#include " CurieIMU.h"
1212
1313void setup () {
14- Serial.begin (9600 );
15-
14+ Serial.begin (9600 ); // initialize Serial communication
15+ while (!Serial) ; // wait for serial port to connect.
1616 // Initialise the IMU
1717 CurieIMU.begin ();
1818 CurieIMU.attachInterrupt (eventCallback);
Original file line number Diff line number Diff line change 1111#include " CurieIMU.h"
1212
1313void setup () {
14- Serial.begin (9600 );
15-
14+ Serial.begin (9600 ); // initialize Serial communication
15+ while (!Serial) ; // wait for serial port to connect.
1616 // Initialise the IMU
1717 CurieIMU.begin ();
1818 CurieIMU.attachInterrupt (eventCallback);
Original file line number Diff line number Diff line change 1111
1212boolean ledState = false ; // state of the LED
1313void setup () {
14- Serial.begin (9600 );
15- while (!Serial); // wait for the serial port to open
14+ Serial.begin (9600 ); // initialize Serial communication
15+ while (!Serial) ; // wait for serial port to connect.
1616
1717 /* Initialise the IMU */
1818 CurieIMU.begin ();
You can’t perform that action at this time.
0 commit comments