pico-micropython-examples/uart/loopback
Alasdair Allan c53509b7b4 Moved to loopback directory 2021-02-25 10:50:09 +00:00
..
README.adoc Moved to loopback directory 2021-02-25 10:50:09 +00:00
pico_uart_example.png Moved to loopback directory 2021-02-25 10:50:09 +00:00
uart.py Moved to loopback directory 2021-02-25 10:50:09 +00:00

README.adoc

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

= Using UART on the Raspberry Pi Pico
:xrefstyle: short

Send data from the UART1 port to the UART0 port. 

== Wiring information

See <<uart-wiring-diagram>> for wiring instructions.

[[uart-wiring-diagram]]
[pdfwidth=75%]
.Wiring two of the Pico's ports together. Be sure to wire UART0n TX to UART1 RX and UART0 RX to UART1 TX.
image::pico_uart_example.png[]

== List of Files

A list of files with descriptions of their function;

uart.py:: The example code.

== Other things to try

[source,python]
----
uart0 = UART(0) # <1>
uart0.readline() # <2>
----
<1> opens a UART connection at the default baudrate of 115,200
<2> reads until the CR (\r) and NL (\n) characters then returns the line

== Bill of Materials

.A list of materials required for the example
[[ring-bom-table]]
[cols=3]
|===
| *Item* | *Quantity* | Details
| Breadboard | 1 | generic part
| Raspberry Pi Pico | 1 | http://raspberrypi.org/
|===