Skip to content

Commit

Permalink
Merge pull request #52 from bboyho/main
Browse files Browse the repository at this point in the history
Update Example12_UseUart.ino
  • Loading branch information
PaulZC authored Mar 13, 2024
2 parents 7856691 + a42c317 commit 80221c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/Basics/Example12_UseUart/Example12_UseUart.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@
SparkFun ZED-F9R Breakout (GPS-16344) https://www.sparkfun.com/products/16344
Hardware Connections:
Connect the U-Blox serial TX pin to Uno pin 10
Connect the U-Blox serial RX pin to Uno pin 11
Connect the U-Blox serial TX pin to Serial1 RX on your Arduino board.
Connect the U-Blox serial RX pin to Serial1 TX on your Arduino board.
Open the serial monitor at 115200 baud to see the output
*/

#include <SparkFun_u-blox_GNSS_v3.h> //http://librarymanager/All#SparkFun_u-blox_GNSS_v3
SFE_UBLOX_GNSS_SERIAL myGNSS;

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX. Pin 10 on Uno goes to TX pin on GNSS module.
#define mySerial Serial2 // Change this to (e.g.) Serial1 if needed

long lastTime = 0; //Simple local timer. Limits amount of I2C traffic to u-blox module.

Expand Down Expand Up @@ -64,7 +63,7 @@ void setup()
Serial.println("GNSS serial connected");

myGNSS.setUART1Output(COM_TYPE_UBX); //Set the UART port to output UBX only
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
//myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
myGNSS.saveConfiguration(); //Save the current settings to flash and BBR
}

Expand Down

0 comments on commit 80221c2

Please sign in to comment.