mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-25 08:59:00 +00:00
i2c iface refactor: Resolve 559
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
package lps22hb
|
||||
|
||||
import "tinygo.org/x/drivers"
|
||||
import "tinygo.org/x/drivers/internal/legacy"
|
||||
|
||||
// Configure sets up the LPS22HB device for communication.
|
||||
func (d *Device) Configure() {
|
||||
// set to block update mode
|
||||
d.bus.WriteRegister(d.Address, LPS22HB_CTRL1_REG, []byte{0x02})
|
||||
legacy.WriteRegister(d.bus, d.Address, LPS22HB_CTRL1_REG, []byte{0x02})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user