Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tuupola/micropython-gnssl76l
MicroPython I2C driver for Quectel GNSS L76-L (GPS)
https://github.com/tuupola/micropython-gnssl76l
esp32 galileo glonass gps micropython qzss
Last synced: 29 days ago
JSON representation
MicroPython I2C driver for Quectel GNSS L76-L (GPS)
- Host: GitHub
- URL: https://github.com/tuupola/micropython-gnssl76l
- Owner: tuupola
- License: mit
- Created: 2017-09-25T22:53:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-28T15:12:23.000Z (almost 7 years ago)
- Last Synced: 2024-08-08T16:52:33.022Z (3 months ago)
- Topics: esp32, galileo, glonass, gps, micropython, qzss
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-mpython - micropython-gnssl76l - MicroPython I2C driver for Quectel GNSS L76-L (GPS). (精选驱动库 / 通讯类)
- awesome-micropython - micropython-gnssl76l - MicroPython I2C driver for Quectel GNSS L76-L (GPS). (Libraries / Communications)
README
# MicroPython GNSS L76-L I2C driver
MicroPython library for accessin the [Quectel GNSS L76-L](http://www.quectel.com/product/l76l.htm) receiver over I2C. L76-L is a
concurrent receiver module integrating GPS, GLONASS, Galileo and QZSS systems.## Usage
Using default I2C pins for ESP32.
```python
import utime
from gnssl76l import GNSSL76Lreceiver = GNSSL76L()
while True:
for sentence in receiver.sentences():
print(sentence)print("\n")
utime.sleep_ms(1000)
```Custom I2C pins when using non ESP32 board.
```python
import utime
from machine import I2C, Pin
from gnssl76l import GNSSL76Li2c = I2C(scl=Pin(26), sda=Pin(25))
receiver = GNSSL76L(i2c)while True:
for sentence in receiver.sentences():
print(sentence)print("\n")
utime.sleep_ms(1000)
```More realistic usage with timer. If you get `OSError: 26` or `i2c driver install error` after soft reboot do a hard reboot.
```python
import micropython
from machine import I2C, Pin, Timer
from gnssl76l import GNSSL76Lmicropython.alloc_emergency_exception_buf(100)
i2c = I2C(scl=Pin(26), sda=Pin(25))
receiver = GNSSL76L(i2c)def read_receiver(timer):
for sentence in receiver.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 see [License File](LICENSE.md) for more information.