antplusbridge/cmd/bridge/main.go

21 lines
393 B
Go

package main
import (
"os/exec"
"github.com/google/gousb"
)
func main() {
exec.Command("hciconfig", "hci0", "down").Run()
exec.Command("hciconfig", "hci0", "up").Run()
var vendorId gousb.ID = 0x0fcf
var productId gousb.ID = 0x1008
var deviceNumber uint32 = 3001
events := make(chan Event)
go ListenForTrainer(vendorId, productId, deviceNumber, events)
ExposeBluetooth(events)
}