-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GPS doesn't wanna work with pi pico Fuc
- Loading branch information
1 parent
35a77fb
commit 67fcdb5
Showing
4 changed files
with
183 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"sketch": "code\\Testing_Crate\\GPS_uBlox\\GPS_uBlox.ino", | ||
"sketch": "code\\Testing_Crate\\GPSTest\\GPSTest.ino", | ||
"board": "rp2040:rp2040:rpipico", | ||
"port": "COM6", | ||
"output": "../build", | ||
"intelliSenseGen": "global", | ||
"programmer": "esptool", | ||
"configuration": "flash=2097152_0,freq=133,opt=Optimize,rtti=Disabled,stackprotect=Enabled,exceptions=Enabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,uploadmethod=default" | ||
"configuration": "flash=2097152_0,freq=133,opt=Small,rtti=Disabled,stackprotect=Disabled,exceptions=Enabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,uploadmethod=default" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include <SoftwareSerial.h> | ||
|
||
// Choose two Arduino pins to use for software serial | ||
int RXPin = 5; | ||
int TXPin = 4; | ||
|
||
// Default baud of NEO-6M is 9600 | ||
int GPSBaud = 9600; | ||
|
||
// Create a software serial port called "gpsSerial" | ||
SoftwareSerial gpsSerial(RXPin, TXPin); | ||
|
||
void setup() | ||
{ | ||
// Start the Arduino hardware serial port at 9600 baud | ||
Serial.begin(9600); | ||
|
||
// Start the software serial port at the GPS's default baud | ||
gpsSerial.begin(GPSBaud); | ||
} | ||
|
||
void loop() | ||
{ | ||
// Displays information when new sentence is available. | ||
while (gpsSerial.available() > 0) | ||
{ | ||
Serial.write(gpsSerial.read()); | ||
} | ||
while (Serial.available() > 0) | ||
{ | ||
gpsSerial.write(Serial.read()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters