//go:build xiao_ble package lsm6ds3tr import ( "device/nrf" "machine" "time" ) // Configure sets up the device for communication. func (d *Device) Configure(cfg Configuration) error { // Following lines are XIAO BLE Sense specific, they have nothing to do with sensor per se // Implementation adapted from https://github.com/Seeed-Studio/Seeed_Arduino_LSM6DS3/blob/master/LSM6DS3.cpp#L68-L77 // Special mode for IMU power pin on this board. // Can not use pin.Configure() directly due to special mode and 32 bit size pinConfig := uint32(nrf.GPIO_PIN_CNF_DIR_Output<