Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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.

Usage

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)

License

The MIT License (MIT). Please seeLicense File for more information.

About

MicroPython I2C driver for Quectel GNSS L76-L (GPS)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp