Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 163df86

Browse files
committed
Moving Wire.begin() back into examples
1 parent b18ab97 commit 163df86

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

examples/NEO-M8P-2/Example3_EnableRTCM/Example3_EnableRTCM.ino

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
These commands are only accepted by the NEO-M8P module.
1212
1313
Feel like supporting open source hardware?
14-
Buy a board from SparkFun! https://www.sparkfun.com/products/14980
14+
Buy a board from SparkFun!
15+
ZED-F9P RTK2: https://www.sparkfun.com/products/15136
16+
NEO-M8P RTK: https://www.sparkfun.com/products/15005
17+
SAM-M8Q: https://www.sparkfun.com/products/15106
1518
1619
Hardware Connections:
1720
Plug a Qwiic cable into the GPS and a BlackBoard
@@ -30,6 +33,8 @@ void setup()
3033
while(!Serial); //Wait for user to open terminal
3134
Serial.println("Ublox RTCM Enable Example");
3235

36+
Wire.begin();
37+
3338
myGPS.begin(Wire); //Connect to the Ublox module using Wire port
3439
if (myGPS.isConnected() == false)
3540
{

examples/NEO-M8P-2/Example4_StartRTCMBase/Example4_StartRTCMBase.ino

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
Begin outputting RTCM bytes
1414
1515
Feel like supporting open source hardware?
16-
Buy a board from SparkFun! https://www.sparkfun.com/products/14980
16+
Buy a board from SparkFun!
17+
ZED-F9P RTK2: https://www.sparkfun.com/products/15136
18+
NEO-M8P RTK: https://www.sparkfun.com/products/15005
19+
SAM-M8Q: https://www.sparkfun.com/products/15106
1720
1821
Hardware Connections:
1922
Plug a Qwiic cable into the GPS and a BlackBoard
@@ -32,6 +35,8 @@ void setup()
3235
while (!Serial); //Wait for user to open terminal
3336
Serial.println("Ublox NEO-M8P-2 base station example");
3437

38+
Wire.begin();
39+
3540
myGPS.begin(Wire); //Connect to the Ublox module using Wire port
3641
if (myGPS.isConnected() == false)
3742
{
@@ -145,4 +150,3 @@ void SFE_UBLOX_GPS::processRTCM(uint8_t incoming)
145150
if (incoming < 0x10) Serial.print("0");
146151
Serial.print(incoming, HEX);
147152
}
148-

examples/NEO-M8P-2/Example5_BaseWithLCD.ino/Example5_BaseWithLCD.ino.ino

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
Begin outputting RTCM bytes
1414
1515
Feel like supporting open source hardware?
16-
Buy a board from SparkFun! https://www.sparkfun.com/products/14980
16+
Buy a board from SparkFun!
17+
ZED-F9P RTK2: https://www.sparkfun.com/products/15136
18+
NEO-M8P RTK: https://www.sparkfun.com/products/15005
19+
SAM-M8Q: https://www.sparkfun.com/products/15106
1720
1821
Hardware Connections:
1922
Plug a Qwiic cable into the GPS and a BlackBoard
@@ -38,6 +41,8 @@ void setup()
3841
while (!Serial); //Wait for user to open terminal
3942
Serial.println("Ublox GPS I2C Test");
4043

44+
Wire.begin();
45+
4146
pinMode(STAT_LED, OUTPUT);
4247
digitalWrite(STAT_LED, LOW);
4348

@@ -178,4 +183,3 @@ void SFE_UBLOX_GPS::processRTCM(uint8_t incoming)
178183
if (incoming < 0x10) Serial.print("0");
179184
Serial.print(incoming, HEX);
180185
}
181-

examples/ZED-F9P/Example4_GetPositionAccuracy/Example4_GetPositionAccuracy.ino

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
Begin outputting RTCM bytes
1414
1515
Feel like supporting open source hardware?
16-
Buy a board from SparkFun! https://www.sparkfun.com/products/14980
16+
Buy a board from SparkFun!
17+
ZED-F9P RTK2: https://www.sparkfun.com/products/15136
18+
NEO-M8P RTK: https://www.sparkfun.com/products/15005
19+
SAM-M8Q: https://www.sparkfun.com/products/15106
1720
1821
Hardware Connections:
1922
Plug a Qwiic cable into the GPS and a BlackBoard
@@ -34,6 +37,8 @@ void setup()
3437
while (!Serial); //Wait for user to open terminal
3538
Serial.println("Ublox high precision accuracy example");
3639

40+
Wire.begin();
41+
3742
myGPS.begin(); //Connect to the Ublox module using Wire port
3843
if (myGPS.isConnected() == false)
3944
{
@@ -42,7 +47,6 @@ void setup()
4247
}
4348

4449
Wire.setClock(400000); //Increase I2C clock speed to 400kHz
45-
4650
}
4751

4852
void loop()

0 commit comments

Comments
 (0)