mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-03 06:27:47 +00:00
mma8653: fix doc comments
This commit is contained in:
+1
-1
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user