Skip to content

Commit 81ba32c

Browse files
Arduino library compatibility (#92)
* Rename Files and Library Rename src files and library to follow Arduino's library guidelines: https://arduino.github.io/arduino-cli/latest/library-specification/ * Bump version Bump version to 2.0.0 - Not backwards compatible with file name changes * Revert file name change * Create wrapper header Wrapper header for library name change Provides backwards compatibility * Version reduction revert version bump * Update TinyGPSPlus.h Wrapper header for dummy header
1 parent cfb60e5 commit 81ba32c

File tree

13 files changed

+70
-44
lines changed

13 files changed

+70
-44
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# TinyGPSPlus
22
A new, customizable Arduino NMEA parsing library
33
A *NEW* Full-featured GPS/NMEA Parser for Arduino
4-
TinyGPS++ is a new Arduino library for parsing NMEA data streams provided by GPS modules.
4+
TinyGPSPlus is a new Arduino library for parsing NMEA data streams provided by GPS modules.
55

66
Like its predecessor, TinyGPS, this library provides compact and easy-to-use methods for extracting position, date, time, altitude, speed, and course from consumer GPS devices.
77

8-
However, TinyGPS++’s programmer interface is considerably simpler to use than TinyGPS, and the new library can extract arbitrary data from any of the myriad NMEA sentences out there, even proprietary ones.
8+
However, TinyGPSPlus’s programmer interface is considerably simpler to use than TinyGPS, and the new library can extract arbitrary data from any of the myriad NMEA sentences out there, even proprietary ones.
99

10-
See [Arduiniana - TinyGPS++](http://arduiniana.org/libraries/tinygpsplus/) for more detailed information on how to use TinyGPSPlus
10+
See [Arduiniana - TinyGPSPlus](http://arduiniana.org/libraries/tinygpsplus/) for more detailed information on how to use TinyGPSPlus

examples/BasicExample/BasicExample.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#include <TinyGPS++.h>
1+
#include <TinyGPSPlus.h>
22
/*
3-
This sample sketch should be the first you try out when you are testing a TinyGPS++
4-
(TinyGPSPlus) installation. In normal use, you feed TinyGPS++ objects characters from
3+
This sample sketch should be the first you try out when you are testing a TinyGPSPlus
4+
(TinyGPSPlus) installation. In normal use, you feed TinyGPSPlus objects characters from
55
a serial NMEA GPS device, but this example uses static strings for simplicity.
66
*/
77

@@ -14,16 +14,16 @@ const char *gpsStream =
1414
"$GPRMC,045251.000,A,3014.4275,N,09749.0626,W,0.51,217.94,030913,,,A*7D\r\n"
1515
"$GPGGA,045252.000,3014.4273,N,09749.0628,W,1,09,1.3,206.9,M,-22.5,M,,0000*6F\r\n";
1616

17-
// The TinyGPS++ object
17+
// The TinyGPSPlus object
1818
TinyGPSPlus gps;
1919

2020
void setup()
2121
{
2222
Serial.begin(115200);
2323

2424
Serial.println(F("BasicExample.ino"));
25-
Serial.println(F("Basic demonstration of TinyGPS++ (no device needed)"));
26-
Serial.print(F("Testing TinyGPS++ library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
25+
Serial.println(F("Basic demonstration of TinyGPSPlus (no device needed)"));
26+
Serial.print(F("Testing TinyGPSPlus library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
2727
Serial.println(F("by Mikal Hart"));
2828
Serial.println();
2929

examples/DeviceExample/DeviceExample.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include <TinyGPS++.h>
1+
#include <TinyGPSPlus.h>
22
#include <SoftwareSerial.h>
33
/*
4-
This sample sketch demonstrates the normal use of a TinyGPS++ (TinyGPSPlus) object.
4+
This sample sketch demonstrates the normal use of a TinyGPSPlus (TinyGPSPlus) object.
55
It requires the use of SoftwareSerial, and assumes that you have a
66
4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
77
*/
88
static const int RXPin = 4, TXPin = 3;
99
static const uint32_t GPSBaud = 4800;
1010

11-
// The TinyGPS++ object
11+
// The TinyGPSPlus object
1212
TinyGPSPlus gps;
1313

1414
// The serial connection to the GPS device
@@ -20,8 +20,8 @@ void setup()
2020
ss.begin(GPSBaud);
2121

2222
Serial.println(F("DeviceExample.ino"));
23-
Serial.println(F("A simple demonstration of TinyGPS++ with an attached GPS module"));
24-
Serial.print(F("Testing TinyGPS++ library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
23+
Serial.println(F("A simple demonstration of TinyGPSPlus with an attached GPS module"));
24+
Serial.print(F("Testing TinyGPSPlus library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
2525
Serial.println(F("by Mikal Hart"));
2626
Serial.println();
2727
}

examples/FullExample/FullExample.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include <TinyGPS++.h>
1+
#include <TinyGPSPlus.h>
22
#include <SoftwareSerial.h>
33
/*
4-
This sample code demonstrates the normal use of a TinyGPS++ (TinyGPSPlus) object.
4+
This sample code demonstrates the normal use of a TinyGPSPlus (TinyGPSPlus) object.
55
It requires the use of SoftwareSerial, and assumes that you have a
66
4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
77
*/
88
static const int RXPin = 4, TXPin = 3;
99
static const uint32_t GPSBaud = 4800;
1010

11-
// The TinyGPS++ object
11+
// The TinyGPSPlus object
1212
TinyGPSPlus gps;
1313

1414
// The serial connection to the GPS device
@@ -20,8 +20,8 @@ void setup()
2020
ss.begin(GPSBaud);
2121

2222
Serial.println(F("FullExample.ino"));
23-
Serial.println(F("An extensive example of many interesting TinyGPS++ features"));
24-
Serial.print(F("Testing TinyGPS++ library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
23+
Serial.println(F("An extensive example of many interesting TinyGPSPlus features"));
24+
Serial.print(F("Testing TinyGPSPlus library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
2525
Serial.println(F("by Mikal Hart"));
2626
Serial.println();
2727
Serial.println(F("Sats HDOP Latitude Longitude Fix Date Time Date Alt Course Speed Card Distance Course Card Chars Sentences Checksum"));

examples/KitchenSink/KitchenSink.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include <TinyGPS++.h>
1+
#include <TinyGPSPlus.h>
22
#include <SoftwareSerial.h>
33
/*
4-
This sample code demonstrates just about every built-in operation of TinyGPS++ (TinyGPSPlus).
4+
This sample code demonstrates just about every built-in operation of TinyGPSPlus (TinyGPSPlus).
55
It requires the use of SoftwareSerial, and assumes that you have a
66
4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
77
*/
88
static const int RXPin = 4, TXPin = 3;
99
static const uint32_t GPSBaud = 4800;
1010

11-
// The TinyGPS++ object
11+
// The TinyGPSPlus object
1212
TinyGPSPlus gps;
1313

1414
// The serial connection to the GPS device
@@ -23,8 +23,8 @@ void setup()
2323
ss.begin(GPSBaud);
2424

2525
Serial.println(F("KitchenSink.ino"));
26-
Serial.println(F("Demonstrating nearly every feature of TinyGPS++"));
27-
Serial.print(F("Testing TinyGPS++ library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
26+
Serial.println(F("Demonstrating nearly every feature of TinyGPSPlus"));
27+
Serial.print(F("Testing TinyGPSPlus library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
2828
Serial.println(F("by Mikal Hart"));
2929
Serial.println();
3030
}

examples/SatElevTracker/SatElevTracker.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#include <TinyGPS++.h>
1+
#include <TinyGPSPlus.h>
22
#include <SoftwareSerial.h>
33
/*
44
This sample code tracks satellite elevations using TinyGPSCustom objects.
55
6-
Satellite numbers and elevations are not normally tracked by TinyGPS++, but
6+
Satellite numbers and elevations are not normally tracked by TinyGPSPlus, but
77
by using TinyGPSCustom we get around this.
88
99
It requires the use of SoftwareSerial and assumes that you have a
@@ -14,7 +14,7 @@ static const uint32_t GPSBaud = 4800;
1414
static const int MAX_SATELLITES = 40;
1515
static const int PAGE_LENGTH = 40;
1616

17-
// The TinyGPS++ object
17+
// The TinyGPSPlus object
1818
TinyGPSPlus gps;
1919

2020
// The serial connection to the GPS device
@@ -40,7 +40,7 @@ void setup()
4040

4141
Serial.println(F("SatElevTracker.ino"));
4242
Serial.println(F("Displays GPS satellite elevations as they change"));
43-
Serial.print(F("Testing TinyGPS++ library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
43+
Serial.print(F("Testing TinyGPSPlus library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
4444
Serial.println(F("by Mikal Hart"));
4545
Serial.println();
4646

examples/SatElevTracker/sample_satellite_elevation_log.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SatElevTracker.ino
22
Displays GPS satellite elevations as they change
3-
Testing TinyGPS++ library v. 1
3+
Testing TinyGPSPlus library v. 1
44
by Mikal Hart
55

66
Time 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

examples/SatelliteTracker/SatelliteTracker.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#include <TinyGPS++.h>
1+
#include <TinyGPSPlus.h>
22
#include <SoftwareSerial.h>
33
/*
44
This sample code demonstrates how to use an array of TinyGPSCustom objects
55
to monitor all the visible satellites.
66
77
Satellite numbers, elevation, azimuth, and signal-to-noise ratio are not
8-
normally tracked by TinyGPS++, but by using TinyGPSCustom we get around this.
8+
normally tracked by TinyGPSPlus, but by using TinyGPSCustom we get around this.
99
1010
The simple code also demonstrates how to use arrays of TinyGPSCustom objects,
1111
each monitoring a different field of the $GPGSV sentence.
@@ -16,7 +16,7 @@
1616
static const int RXPin = 4, TXPin = 3;
1717
static const uint32_t GPSBaud = 4800;
1818

19-
// The TinyGPS++ object
19+
// The TinyGPSPlus object
2020
TinyGPSPlus gps;
2121

2222
// The serial connection to the GPS device
@@ -70,7 +70,7 @@ void setup()
7070

7171
Serial.println(F("SatelliteTracker.ino"));
7272
Serial.println(F("Monitoring satellite location and signal strength using TinyGPSCustom"));
73-
Serial.print(F("Testing TinyGPS++ library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
73+
Serial.print(F("Testing TinyGPSPlus library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
7474
Serial.println(F("by Mikal Hart"));
7575
Serial.println();
7676

examples/UsingCustomFields/UsingCustomFields.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#include <TinyGPS++.h>
1+
#include <TinyGPSPlus.h>
22
#include <SoftwareSerial.h>
33

44
/*
5-
This sample demonstrates TinyGPS++'s capacity for extracting custom
6-
fields from any NMEA sentence. TinyGPS++ has built-in facilities for
5+
This sample demonstrates TinyGPSPlus's capacity for extracting custom
6+
fields from any NMEA sentence. TinyGPSPlus has built-in facilities for
77
extracting latitude, longitude, altitude, etc., from the $GPGGA and
88
$GPRMC sentences. But with the TinyGPSCustom type, you can extract
99
other NMEA fields, even from non-standard NMEA sentences.
@@ -14,7 +14,7 @@
1414
static const int RXPin = 4, TXPin = 3;
1515
static const uint32_t GPSBaud = 4800;
1616

17-
// The TinyGPS++ object
17+
// The TinyGPSPlus object
1818
TinyGPSPlus gps;
1919

2020
// The serial connection to the GPS device
@@ -45,7 +45,7 @@ void setup()
4545

4646
Serial.println(F("UsingCustomFields.ino"));
4747
Serial.println(F("Demonstrating how to extract any NMEA field using TinyGPSCustom"));
48-
Serial.print(F("Testing TinyGPS++ library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
48+
Serial.print(F("Testing TinyGPSPlus library v. ")); Serial.println(TinyGPSPlus::libraryVersion());
4949
Serial.println(F("by Mikal Hart"));
5050
Serial.println();
5151
}

keywords.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#######################################
2-
# Syntax Coloring Map for TinyGPS++
2+
# Syntax Coloring Map for TinyGPSPlus
33
#######################################
44

55
#######################################

0 commit comments

Comments
 (0)