piframe-go/vendor/github.com/d2r2/go-i2c/noncgo.go

12 lines
219 B
Go
Raw Normal View History

2020-08-25 22:54:46 +00:00
// +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
)