Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <SoftwareSerial.h>
  2. static const int RXPin = P1_4, TXPin = P1_3;
  3. static const uint32_t GPSBaud = 9600;
  4. // The serial connection to the GPS device
  5. SoftwareSerial ss(RXPin, TXPin);
  6. void setup()
  7. {
  8.   Serial.begin(115200);
  9.   ss.begin(GPSBaud);
  10. }
  11. void loop()
  12. {
  13.   // Output raw GPS data to the serial monitor
  14.   while (ss.available() > 0){
  15.     Serial.write(ss.read());
  16.    // delay(10);
  17.   }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement