From ede42d567118db467e68157fec818b78ce8c978c Mon Sep 17 00:00:00 2001 From: Alasdair Allan Date: Thu, 25 Feb 2021 10:41:58 +0000 Subject: [PATCH] Added BoM and modified source block --- uart/README.adoc | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/uart/README.adoc b/uart/README.adoc index 586bdb5..0f328d3 100644 --- a/uart/README.adoc +++ b/uart/README.adoc @@ -3,23 +3,38 @@ Send data from the UART1 port to the UART0 port. -== Other code to try -[source.python] -uart0 = UART(0) #opens a UART connection at the default baudrate of 115,200 -uart0.readline() #reads until the CR (\r) and NL (\n) characters then returns the line - - == Wiring information See <> for wiring instructions. [[uart-wiring-diagram]] [pdfwidth=75%] -.Wiring two of the Pico's ports together. Be sure to wire UART0:TX to UART1:RX and UART0:RX to UART1:TX. +.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[] +== 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 + == List of Files A list of files with descriptions of their function; -uart.py:: The example code. \ No newline at end of file +uart.py:: The example code. + +== 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/ +|=== \ No newline at end of file