Skip to content

Instantly share code, notes, and snippets.

@ypelletier
Created August 8, 2021 16:55
Utilisation d'un module GPS NEO 6MV2 avec un Raspberry Pi Pico. Ce qui est reçu par UART est affiché dans la console.
'''
Utilisation d'un module GPS NEO 6MV2 avec un
Raspberry Pi Pico. Ce qui est reçu
par UART est affiché dans la console.
Pour plus d'infos:
https://electroniqueamateur.blogspot.com/2021/08/module-gps-neo-6mv2-et-raspberry-pi-pico.html
'''
import machine
from utime import sleep
uart= machine.UART(1,baudrate=9600) # initialisation UART
while True:
if uart.any(): # si nous avons reçu quelque chose...
print(uart.readline().decode('utf-8')) # noud affichons le message reçu
sleep(0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment