An open API service indexing awesome lists of open source software.

https://github.com/electroniccats/pxt-gps

MakeCode package for GPS - beta
https://github.com/electroniccats/pxt-gps

gps gps-location l80 makecode makecode-extension pxt pxt-maker

Last synced: 12 months ago
JSON representation

MakeCode package for GPS - beta

Awesome Lists containing this project

README

          



# GPS
[![Build Status](https://travis-ci.org/ElectronicCats/pxt-gps.svg?branch=master)](https://travis-ci.org/ElectronicCats/pxt-gps)

This package adds functionality to the GPS breakout.

This is the Electronic Cats GPS makecode extension. Tested and works great with the L80 GPS module using MTK33x9 chipset

These modules use TTL serial to communicate, 2 pins are required to interface

Electronic Cats invests time and resources providing this open source design, please support Electronic Cats and open-source hardware by purchasing products from Electronic Cats!

## Usage
```
forever(function () {
gps.encode()
console.logValue("longitud", gps.longitude())
console.logValue("latitud", gps.latitude())
console.logValue("altura", gps.altitude())
console.log(gps.DateTime())
})
```

## API

- `function encode()` : encode sentence Nmea GPS

- `function latitude()` : return latitude.

- `function longitude():` return longitude

- `function altitude()`: return altitude in meters.

- `function Date Time()`: return date and time UTC.

## License

MIT

Copyright (c) 2019, Electronic Cats

## Maintainer

[Electronic Cats](https://github.com/ElectronicCats) invests time and resources providing this open source design, please support Electronic Cats and open-source hardware by purchasing products from Electronic Cats!

## Supported targets

* for PXT/maker
* for PXT/micro:bit (not tested)

```package
gps
```