File tree 7 files changed +14
-13
lines changed
libraries/CurieIMU/examples
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
16
16
17
17
18
18
void 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.
21
21
22
22
/* Initialise the IMU */
23
23
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
15
15
unsigned long interruptsTime = 0 ; // get the time when motion event is detected
16
16
17
17
void 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.
20
20
21
21
/* Initialise the IMU */
22
22
CurieIMU.begin ();
Original file line number Diff line number Diff line change 13
13
boolean blinkState = false ; // state of the LED
14
14
15
15
void setup () {
16
- Serial.begin (9600 );
17
-
16
+ Serial.begin (9600 ); // initialize Serial communication
17
+ while (!Serial) ; // wait for serial port to connect..
18
18
/* Initialise the IMU */
19
19
CurieIMU.begin ();
20
20
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
25
25
boolean blinkState = false ; // state of the LED
26
26
27
27
void setup () {
28
- Serial.begin (9600 );
28
+ Serial.begin (9600 ); // initialize Serial communication
29
+ while (!Serial) ; // wait for serial port to connect.
29
30
// pinMode(13, OUTPUT);
30
31
// intialize the sensor:
31
32
CurieIMU.begin ();
Original file line number Diff line number Diff line change 11
11
#include " CurieIMU.h"
12
12
13
13
void setup () {
14
- Serial.begin (9600 );
15
-
14
+ Serial.begin (9600 ); // initialize Serial communication
15
+ while (!Serial) ; // wait for serial port to connect.
16
16
// Initialise the IMU
17
17
CurieIMU.begin ();
18
18
CurieIMU.attachInterrupt (eventCallback);
Original file line number Diff line number Diff line change 11
11
#include " CurieIMU.h"
12
12
13
13
void setup () {
14
- Serial.begin (9600 );
15
-
14
+ Serial.begin (9600 ); // initialize Serial communication
15
+ while (!Serial) ; // wait for serial port to connect.
16
16
// Initialise the IMU
17
17
CurieIMU.begin ();
18
18
CurieIMU.attachInterrupt (eventCallback);
Original file line number Diff line number Diff line change 11
11
12
12
boolean ledState = false ; // state of the LED
13
13
void 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.
16
16
17
17
/* Initialise the IMU */
18
18
CurieIMU.begin ();
You can’t perform that action at this time.
0 commit comments