12 lines
219 B
Go
12 lines
219 B
Go
|
// +build !cgo
|
||
|
|
||
|
package i2c
|
||
|
|
||
|
// Use hard-coded value for system I2C_SLAVE
|
||
|
// constant, if OS not Linux or CGO disabled.
|
||
|
// This is not a good approach, but
|
||
|
// can be used as a last resort.
|
||
|
const (
|
||
|
I2C_SLAVE = 0x0703
|
||
|
)
|