A quick-and-dirty library wrapping the native API of the waveshare GPS hat.
Project description
# RPI Waveshare Lib
This is a simple library for using the WaveShare L76x GPS hat for the Raspberry Pi.
The library turns on sensing and runs a background thread that parses the incoming serial messages and pushes them into a queue, from which the most recent message of a given type can be queried synchronously without blocking.
The API exposes the following methods:
## Importing the Library
`python import waveshare `
## Start Serial Stream
`python start() `
This starts the stream of serial data from the device. Prior to running this method, all getters will return None.
## Stop Serial Stream
`python stop() `
This stops the stream of serial data from the device. Until it is re-started, all getters will return the last value published by the device.
## Read Data Packets
`python get_gga() `
`python get_gsa() `
`python get_gsv() `
`python get_rmc() `
For a description of the contents of each packet type, see: http://aprs.gids.nl/nmea/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for waveshare_rpi-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b1c0fdd38ab2498ea0289c9f43e86f1b56aac705347046cfc287c910ad3f9ad |
|
MD5 | 60919c2692957bead401fe7048a9506f |
|
BLAKE2b-256 | 8d68e6a7948af8de2fba44f1c154042294a6f4d8b86830258e768bb4cdba730e |