mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-13 03:13:41 +00:00
82e9e4a7f3
lps22hb: add support for lps22hb
15 lines
350 B
Go
15 lines
350 B
Go
//go:build !nano_33_ble
|
|
// +build !nano_33_ble
|
|
|
|
package lps22hb
|
|
|
|
import "tinygo.org/x/drivers"
|
|
|
|
// New creates a new LPS22HB connection. The I2C bus must already be
|
|
// configured.
|
|
//
|
|
// This function only creates the Device object, it does not touch the device.
|
|
func New(bus drivers.I2C) Device {
|
|
return Device{bus: bus, Address: LPS22HB_ADDRESS}
|
|
}
|