- Notifications
You must be signed in to change notification settings - Fork5
MicroPython I2C driver for Quectel GNSS L76-L (GPS)
License
NotificationsYou must be signed in to change notification settings
tuupola/micropython-gnssl76l
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
MicroPython library for accessin theQuectel GNSS L76-L receiver over I2C. L76-L is aconcurrent receiver module integrating GPS, GLONASS, Galileo and QZSS systems.
Using default I2C pins for ESP32.
importutimefromgnssl76limportGNSSL76Lreceiver=GNSSL76L()whileTrue:forsentenceinreceiver.sentences():print(sentence)print("\n")utime.sleep_ms(1000)
Custom I2C pins when using non ESP32 board.
importutimefrommachineimportI2C,Pinfromgnssl76limportGNSSL76Li2c=I2C(scl=Pin(26),sda=Pin(25))receiver=GNSSL76L(i2c)whileTrue:forsentenceinreceiver.sentences():print(sentence)print("\n")utime.sleep_ms(1000)
More realistic usage with timer. If you getOSError: 26
ori2c driver install error
after soft reboot do a hard reboot.
importmicropythonfrommachineimportI2C,Pin,Timerfromgnssl76limportGNSSL76Lmicropython.alloc_emergency_exception_buf(100)i2c=I2C(scl=Pin(26),sda=Pin(25))receiver=GNSSL76L(i2c)defread_receiver(timer):forsentenceinreceiver.sentences():print(sentence)print("\n")timer_0=Timer(0)timer_0.init(period=1000,mode=Timer.PERIODIC,callback=read_receiver)
The MIT License (MIT). Please seeLicense File for more information.
About
MicroPython I2C driver for Quectel GNSS L76-L (GPS)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.