File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
Circuit:
8
8
- MKR board
9
- - MKR GPS shield attached
9
+ - MKR GPS attached via I2C cable
10
10
11
11
This example code is in the public domain.
12
12
*/
@@ -20,6 +20,8 @@ void setup() {
20
20
; // wait for serial port to connect. Needed for native USB port only
21
21
}
22
22
23
+ // If you are using the MKR GPS as shield, change the next line to pass
24
+ // the GPS_MODE_SHIELD parameter to the GPS.begin(...)
23
25
if (!GPS.begin ()) {
24
26
Serial.println (" Failed to initialize GPS!" );
25
27
while (1 );
Original file line number Diff line number Diff line change 8
8
9
9
Circuit:
10
10
- MKR board
11
- - MKR GPS shield attached
11
+ - MKR GPS attached via I2C cable
12
12
13
13
This example code is in the public domain.
14
14
*/
@@ -22,6 +22,8 @@ void setup() {
22
22
; // wait for serial port to connect. Needed for native USB port only
23
23
}
24
24
25
+ // If you are using the MKR GPS as shield, change the next line to pass
26
+ // the GPS_MODE_SHIELD parameter to the GPS.begin(...)
25
27
if (!GPS.begin ()) {
26
28
Serial.println (" Failed to initialize GPS!" );
27
29
while (1 );
Original file line number Diff line number Diff line change @@ -34,3 +34,4 @@ wakeup KEYWORD2
34
34
35
35
GPS_MODE_UART LITERAL1
36
36
GPS_MODE_I2C LITERAL1
37
+ GPS_MODE_SHIELD LITERAL1
Original file line number Diff line number Diff line change 28
28
{
29
29
GPS_MODE_UART,
30
30
GPS_MODE_I2C,
31
+ GPS_MODE_SHIELD = GPS_MODE_UART
31
32
};
32
33
33
34
class GPSClass {
You can’t perform that action at this time.
0 commit comments