rpii2c

package module
v0.0.0-...-fca249e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 5 Imported by: 1

README

go-sensors/rpii2c

Go library for providing I2C connectivity to sensors connected to Raspberry Pi computers (and compatible clones) using the d2r2/go-i2c package.

Quickstart

The I2C bus needs to be enabled in system configuration in order for this to work. See d2r2/go-i2c Troubleshooting for more information.

Take a look at rpi-sensor-exporter for an example implementation that makes use of this library and several sensors.

Building

This software doesn't have any compiled assets.

Code of Conduct

We are committed to fostering an open and welcoming environment. Please read our code of conduct before participating in or contributing to this project.

Contributing

We welcome contributions and collaboration on this project. Please read our contributor's guide to understand how best to work with us.

License and Authors

Daniel James logo Daniel James

license GitHub contributors

This software is made available by Daniel James under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type I2CPort

type I2CPort struct {
	Address byte
	Bus     int
}

func NewI2CPort

func NewI2CPort(bus int, config *corei2c.I2CPortConfig) (*I2CPort, error)

func (*I2CPort) Open

func (p *I2CPort) Open() (coreio.Port, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL