mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
8b3075fdba
Signed-off-by: deadprogram <ron@hybridgroup.com>
14 lines
272 B
Go
14 lines
272 B
Go
//go: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)
|
|
}
|