Seperate use of Rx and Tx lines when using micropyGPS #12874
-
My first attempt to program a Raspberry Pi Pico is using MicroPython to read and parse a NMEA $GPRMC sentence from a GPS using micropyGPS. This uses only the Rx line of the chosen UART, will I be able to use the Tx line of that UART to send data to another device ? Or will micropyGPS ´claim´ this Tx line for it´s own use ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hardly. And even if, RX and TX of a UART have the same settings of e.g. baud rate, bits, .... At the Pico you can as well use the PIO for UART data transfer. If you enable PIO transfer after setting up the UART, it should be possible to override the use of the TX pin by the UART. |
Beta Was this translation helpful? Give feedback.
Hardly. And even if, RX and TX of a UART have the same settings of e.g. baud rate, bits, .... At the Pico you can as well use the PIO for UART data transfer. If you enable PIO transfer after setting up the UART, it should be possible to override the use of the TX pin by the UART.
For the PIO UART example. see https://github.com/raspberrypi/pico-micropython-examples/tree/master/pio