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!
forever(function () {
gps.encode()
console.logValue("longitud", gps.longitude())
console.logValue("latitud", gps.latitude())
console.logValue("altura", gps.altitude())
console.log(gps.DateTime())
})
-
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.
MIT
Copyright (c) 2019, Electronic Cats
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!
- for PXT/maker
- for PXT/micro:bit (not tested)
gps