We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 392a709 commit 65b085aCopy full SHA for 65b085a
src/examples/echo/echo.go
@@ -7,15 +7,13 @@ import (
7
"time"
8
)
9
10
-// change these to test a different UART or pins if available
11
var (
12
uart = machine.Serial
13
- tx = machine.UART_TX_PIN
14
- rx = machine.UART_RX_PIN
15
16
17
func main() {
18
- uart.Configure(machine.UARTConfig{TX: tx, RX: rx})
+ // use default settings for UART
+ uart.Configure(machine.UARTConfig{})
19
uart.Write([]byte("Echo console enabled. Type something then press enter:\r\n"))
20
21
input := make([]byte, 64)
0 commit comments