Skip to content

Commit

Permalink
Serial UART initialization on main source file.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Apr 18, 2024
1 parent 03dc846 commit bc6565f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bc6565f

Please sign in to comment.