tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/hts221/hts221_generic.go (about)

     1  //go:build !nano_33_ble
     2  
     3  package hts221
     4  
     5  import "tinygo.org/x/drivers"
     6  
     7  // Configure sets up the HTS221 device for communication.
     8  func (d *Device) Configure() {
     9  	// read calibration data
    10  	d.calibration()
    11  	// activate device and use block data update mode
    12  	d.Power(true)
    13  }