Skip to content

Commit ede42d5

Browse files
author
Alasdair Allan
committed
Added BoM and modified source block
1 parent 974a82a commit ede42d5

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

uart/README.adoc

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,38 @@
33

44
Send data from the UART1 port to the UART0 port.
55

6-
== Other code to try
7-
[source.python]
8-
uart0 = UART(0) #opens a UART connection at the default baudrate of 115,200
9-
uart0.readline() #reads until the CR (\r) and NL (\n) characters then returns the line
10-
11-
126
== Wiring information
137

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

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

15+
== Other things to try
16+
17+
[source,python]
18+
----
19+
uart0 = UART(0) // <1>
20+
uart0.readline() // <2>
21+
----
22+
<1> opens a UART connection at the default baudrate of 115,200
23+
<2> reads until the CR (\r) and NL (\n) characters then returns the line
24+
2125
== List of Files
2226

2327
A list of files with descriptions of their function;
2428

25-
uart.py:: The example code.
29+
uart.py:: The example code.
30+
31+
== Bill of Materials
32+
33+
.A list of materials required for the example
34+
[[ring-bom-table]]
35+
[cols=3]
36+
|===
37+
| *Item* | *Quantity* | Details
38+
| Breadboard | 1 | generic part
39+
| Raspberry Pi Pico | 1 | http://raspberrypi.org/
40+
|===

0 commit comments

Comments
 (0)