From bc6565f942916a9ecc97c3c19cea1c3c12c6deba Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Thu, 18 Apr 2024 22:56:42 +0800 Subject: [PATCH] Serial UART initialization on main source file. --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 43a7bfa..681c569 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,9 @@ func main() { var network n2.NeuralNetwork var epoch uint16 = 0 + machine.InitSerial() machine.UART1.SetBaudRate(115200) + for { command, error := machine.Serial.ReadByte() if error != nil {