File: noncgo.go

package info (click to toggle)
golang-github-d2r2-go-i2c 0.0~git20191123.73a8a79-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 116 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 219 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
// +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
)