mirror of https://github.com/periph/devices
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
388 B
Go
21 lines
388 B
Go
package firmata
|
|
|
|
const (
|
|
I2CRestartTransmission uint8 = 0b01000000
|
|
I2CModeMask uint8 = 0b00011000
|
|
)
|
|
|
|
type I2CMode uint8
|
|
|
|
const (
|
|
I2CModeWrite I2CMode = 0b00000000
|
|
I2CModeRead I2CMode = 0b00001000
|
|
I2CModeReadContinuously I2CMode = 0b00010000
|
|
I2CModeStopReading I2CMode = 0b00011000
|
|
)
|
|
|
|
type I2CPacket struct {
|
|
Register uint8
|
|
Data []byte
|
|
}
|