latest versions
This commit is contained in:
8
nmeastream/main.py
Normal file
8
nmeastream/main.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from serial import Serial
|
||||
from pynmeagps import NMEAReader
|
||||
with Serial('/dev/tty.usbmodem314101', 9600, timeout=3) as stream:
|
||||
nmr = NMEAReader(stream)
|
||||
raw_data, parsed_data = nmr.read()
|
||||
if parsed_data is not None:
|
||||
print(parsed_data)
|
||||
|
||||
Reference in New Issue
Block a user