diff --git a/mma8653/mma8653.go b/mma8653/mma8653.go index bbacb74..66dcd0b 100644 --- a/mma8653/mma8653.go +++ b/mma8653/mma8653.go @@ -22,7 +22,7 @@ func NewI2C(bus machine.I2C) Device { return Device{bus} } -// Connected returns whether a MMC8653 has been found. +// Connected returns whether a MMA8653 has been found. // It does a "who am I" request and checks the response. func (d Device) Connected() bool { data := []byte{0} diff --git a/mma8653/registers.go b/mma8653/registers.go index 6398fd8..8f3d53e 100644 --- a/mma8653/registers.go +++ b/mma8653/registers.go @@ -5,7 +5,7 @@ package mma8653 // The I2C address which this device listens to. const Address = 0x1D -// Registers. Names, addresses and comment copied from the datasheet. +// Registers. Names, addresses and comments copied from the datasheet. const ( STATUS = 0x00 // Real time status OUT_X_MSB = 0x01 // top 8 bits of 10-bit sample