Сообщения

Сообщения за февраль, 2026

gy-ne06mv2

Изображение
gy-ne06mv2 GPS  плата и антенна.  ESP32 > gy-ne06mv2  GND  > GND  3.3V  > VCC   D17 > RX   D16 > TX   main.py      from machine import UART import time uart = UART(2, baudrate=9600, rx=16, tx=17) satellites = 0 def convert_to_degrees(raw, direction):     if not raw:         return None          raw = float(raw)     degrees = int(raw / 100)     minutes = raw - degrees * 100     decimal = degrees + minutes / 60          if direction in ['S', 'W']:         decimal = -decimal              return decimal while True:     if uart.any():         line = uart.readline()                  if line:             try:           ...