bb8767730c
This SoftDevice is used by default on the BBC micro:bit v2 so it's a good idea to add support here. Unfortunately this SoftDevice does not support scanning and connecting to other devices. This means that I unfortunately had to duplicate the event handler. I managed to refactor most other code to avoid duplicating much more. (This is when macros would have been useful in Go...)
11 lines
218 B
Go
11 lines
218 B
Go
// +build softdevice,s113v7
|
|
|
|
package bluetooth
|
|
|
|
/*
|
|
// Add the correct SoftDevice include path to CFLAGS, so #include will work as
|
|
// expected.
|
|
#cgo CFLAGS: -Is113_nrf52_7.0.1/s113_nrf52_7.0.1_API/include
|
|
*/
|
|
import "C"
|