Skip to content

Commit 65b085a

Browse files
committed
examples: use default UART settings in echo example
Signed-off-by: deadprogram <[email protected]>
1 parent 392a709 commit 65b085a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/examples/echo/echo.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ import (
77
"time"
88
)
99

10-
// change these to test a different UART or pins if available
1110
var (
1211
uart = machine.Serial
13-
tx = machine.UART_TX_PIN
14-
rx = machine.UART_RX_PIN
1512
)
1613

1714
func main() {
18-
uart.Configure(machine.UARTConfig{TX: tx, RX: rx})
15+
// use default settings for UART
16+
uart.Configure(machine.UARTConfig{})
1917
uart.Write([]byte("Echo console enabled. Type something then press enter:\r\n"))
2018

2119
input := make([]byte, 64)

0 commit comments

Comments
 (0)