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

13 lines
182 B
Go

// +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
)