nmea_gps: renamed vk2828u7 to nmea_gps

This driver will serve as a generic module for grabbing NMEA data from
various GPS devices via a serial interface.  ublox6 will also be
removed in favor of using this driver going forward.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2016-08-25 13:54:49 -06:00
committed by Noel Eck
parent 46460e20d9
commit a040f51cda
19 changed files with 152 additions and 155 deletions

View File

@ -131,7 +131,7 @@ add_example(VCAP_Example vcap)
add_example(BMP280_Example bmp280)
add_example(BNO055_Example bno055)
add_example(BMX055_Example bmx055)
add_example(VK2828U7_Example vk2828u7)
add_example(NMEAGPS_Example nmea_gps)
add_example(MMA7361_Example mma7361)
add_example(BH1750_Example bh1750)

View File

@ -22,18 +22,18 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import upm_vk2828u7.VK2828U7;
import upm_nmea_gps.NMEAGPS;
public class VK2828U7_Example
public class NMEAGPS_Example
{
public static void main(String[] args) throws InterruptedException
{
// ! [Interesting]
System.out.println("Initializing...");
// Instantiate a VK2828U7 sensor on uart 0 at 9600 baud with
// Instantiate a NMEAGPS sensor on uart 0 at 9600 baud with
// enable pin on D3
VK2828U7 sensor = new VK2828U7(0, 9600, 3);
NMEAGPS sensor = new NMEAGPS(0, 9600, 3);
// loop, dumping NMEA data out as fast as it comes in
while (sensor.dataAvailable(5000))