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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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