27 lines
486 B
Go
27 lines
486 B
Go
//go:build baremetal
|
|
|
|
package main
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// replace this with the MAC address of the Bluetooth peripheral you want to connect to.
|
|
const deviceAddress = "E4:B7:F4:11:8D:33"
|
|
|
|
func connectAddress() string {
|
|
return deviceAddress
|
|
}
|
|
|
|
// wait on baremetal, proceed immediately on desktop OS.
|
|
func wait() {
|
|
time.Sleep(3 * time.Second)
|
|
}
|
|
|
|
// done just blocks forever, allows USB CDC reset for flashing new software.
|
|
func done() {
|
|
println("Done.")
|
|
|
|
time.Sleep(1 * time.Hour)
|
|
}
|