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

13 lines
182 B
Go
Raw Normal View History

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