New (working !) UART to communicate with the raspberry pi

This commit is contained in:
Pierrick C 2018-08-15 18:44:13 +02:00
parent d9d6d80588
commit d0c130e5e6

View File

@ -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