Documentation ¶
Overview ¶
Package mpu6050 implements the movementsensor interface for an MPU-6050 6-axis accelerometer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMpu6050 ¶
func NewMpu6050( ctx context.Context, deps registry.Dependencies, rawConfig config.Component, logger golog.Logger, ) (movementsensor.MovementSensor, error)
NewMpu6050 constructs a new Mpu6050 object.
Types ¶
type AttrConfig ¶
type AttrConfig struct { BoardName string `json:"board"` I2cBus string `json:"i2c_bus"` UseAlternateI2CAddress bool `json:"use_alt_i2c_address,omitempty"` }
AttrConfig is used to configure the attributes of the chip.
Click to show internal directories.
Click to hide internal directories.