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

13 lines
182 B
Go
Raw Normal View History

2020-09-04 18:56:41 +00:00
// +build linux,cgo
package i2c
// #include <linux/i2c-dev.h>
import "C"
// Get I2C_SLAVE constant value from
// Linux OS I2C declaration file.
const (
I2C_SLAVE = C.I2C_SLAVE
)