Guest User

Untitled

a guest
Jul 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <NewSoftSerial.h>
  2.  
  3. byte GPS_TX=4;    //GPS TX PIN
  4. byte GPS_RX=5;    //GPS RX PIN
  5. NewSoftSerial GPS(GPS_TX, GPS_RX);
  6.  
  7. void setup()
  8. {
  9. // pinMode(GPS_TX, INPUT);
  10. // pinMode(GPS_RX, OUTPUT);
  11.  GPS.begin(9600);
  12.  Serial.begin(9600);
  13.  Serial.println("Testing");
  14. }
  15.  
  16. void loop()
  17.   {
  18.       while(1)
  19.       {
  20.         if(GPS.available())
  21.           {
  22.         char SS_IN_BYTE = GPS.read();
  23.         Serial.print(SS_IN_BYTE);
  24.           }
  25.  
  26.       }
  27.   }
Add Comment
Please, Sign In to add comment