uart: use machine.Serial as the default output

This commit is contained in:
sago35
2021-05-14 19:13:43 +09:00
committed by Ron Evans
parent ce03bebc34
commit aa17ffd1cb
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func main() {
println("GPS UART Example")
machine.UART1.Configure(machine.UARTConfig{BaudRate: 9600})
ublox := gps.NewUART(&machine.UART1)
ublox := gps.NewUART(machine.UART1)
parser := gps.NewParser()
var fix gps.Fix
for {