examples: use default UART settings in echo example

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2024-11-27 18:44:30 +01:00
committed by Ron Evans
parent 392a709b77
commit 65b085a5d5
+2 -4
View File
@@ -7,15 +7,13 @@ import (
"time"
)
// change these to test a different UART or pins if available
var (
uart = machine.Serial
tx = machine.UART_TX_PIN
rx = machine.UART_RX_PIN
)
func main() {
uart.Configure(machine.UARTConfig{TX: tx, RX: rx})
// use default settings for UART
uart.Configure(machine.UARTConfig{})
uart.Write([]byte("Echo console enabled. Type something then press enter:\r\n"))
input := make([]byte, 64)