mirror of
https://github.com/KevinMidboe/Arduino.git
synced 2025-10-29 09:30:12 +00:00
16 lines
289 B
C++
16 lines
289 B
C++
#include <SoftwareSerial.h>
|
|
|
|
// The serial connection to the GPS module
|
|
SoftwareSerial gpsSerial(4, 3);
|
|
|
|
void setup(){
|
|
Serial.begin(9600);
|
|
gpsSerial.begin(9600);
|
|
}
|
|
|
|
void loop(){
|
|
while (gpsSerial.available()) { // check for gps data
|
|
Serial.write(gpsSerial.read());
|
|
}
|
|
}
|