tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/lps22hb/lps22hb_generic.go (about) 1 //go:build !nano_33_ble 2 3 package lps22hb 4 5 import "tinygo.org/x/drivers/internal/legacy" 6 7 // Configure sets up the LPS22HB device for communication. 8 func (d *Device) Configure() { 9 // set to block update mode 10 legacy.WriteRegister(d.bus, d.Address, LPS22HB_CTRL1_REG, []byte{0x02}) 11 }