func New(addr uint8, bus int) (*I2C, error) {
	f, err := os.OpenFile(fmt.Sprintf("/dev/i2c-%d", bus), os.O_RDWR, 0600)
	if err != nil {
		return nil, err
	}
	if err := ioctl(f.Fd(), i2c_SLAVE, uintptr(addr)); err != nil {
		return nil, err
	}
	return &I2C{f}, nil
}
New opens a connection to an i2c device.
package i2c
import (
	"fmt"
	"os"
	"syscall"
)
const (
	i2c_SLAVE = 0x0703
)
type I2C struct {
	rc *os.File
}