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
- Host: GitHub
- URL: https://github.com/electroniccats/pxt-gps
- Owner: ElectronicCats
- License: mit
- Created: 2019-01-02T04:26:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T17:27:43.000Z (over 5 years ago)
- Last Synced: 2025-01-24T04:39:54.540Z (about 1 year ago)
- Topics: gps, gps-location, l80, makecode, makecode-extension, pxt, pxt-maker
- Language: TypeScript
- Homepage:
- Size: 233 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GPS
[](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
```