mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-05 23:43:41 +00:00
bee7422c3a
Fix HTS221, LPS22HB and APDS9960 drivers and their examples for Arduino Nano 33 BLE: * Update hts221_nano_33_ble.go * Update lps22hb_nano_33_ble.go * Update apds9960_nano_33_ble.go
15 lines
295 B
Go
15 lines
295 B
Go
//go:build !nano_33_ble
|
|
// +build !nano_33_ble
|
|
|
|
package hts221
|
|
|
|
import "tinygo.org/x/drivers"
|
|
|
|
// Configure sets up the HTS221 device for communication.
|
|
func (d *Device) Configure() {
|
|
// read calibration data
|
|
d.calibration()
|
|
// activate device and use block data update mode
|
|
d.Power(true)
|
|
}
|