From d0c130e5e66b77d73c896716bbe837430eb592a7 Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Wed, 15 Aug 2018 18:44:13 +0200 Subject: [PATCH] New (working !) UART to communicate with the raspberry pi --- circuitpython/code/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/circuitpython/code/main.py b/circuitpython/code/main.py index f35896f..9beb7a3 100644 --- a/circuitpython/code/main.py +++ b/circuitpython/code/main.py @@ -27,12 +27,12 @@ Pins used: * A5 : Ultimate GPS FeatherWing EN (enabe/disable GPS power) * I2C SDA/SCL : BME280 sensor * D5 : RW / RO jumper - * D10, D11 : UART TX & RX to Raspberry pi (115200 baudrate) + * A2, A3 : UART TX & RX to Raspberry pi (115200 baudrate) * D9 : to EN pin on Raspberry Lipo SHIM * D13 : onboard LED (as RW/RO indicator) Back pins diagramm: - D05 D10 D11 D09 NC_ + D05 A2 A3 D09 NC_ GND GND SCL SDA 3V3 Git repository : @@ -305,8 +305,8 @@ if gps_enable: # Second UART to communicate with raspberry pi (throught GPIO) if send_json_data: - rpi_uart = UART(board.D10, board.D11, - baudrate=9600, timeout=2000, parity=None) + rpi_uart = UART(board.A2, board.A3, + baudrate=115200, timeout=2000) # Set onboard Neopixel : used as atmo data output # brightness is fixed to 1 to spare some memory. Use neopixel_max_value instead