#include #include #include TinyGPSPlus gps; SoftwareSerial mySerial(10, 9); // RX, TX LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { mySerial.begin(9600); lcd.begin(16, 2); lcd.setCursor(0, 0); lcd.print("Goodnight moon!"); } void loop() { // run over and over while (mySerial.available() > 0){ char c = mySerial.read(); gps.encode(c); if (gps.location.isUpdated()){ lcd.setCursor(0, 0); lcd.print("LAT="); lcd.print(gps.location.lat(), 6); lcd.setCursor(0, 1); lcd.print("LONG="); lcd.print(gps.location.lng(), 6); } } }