Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zappem.net/pub/io/i2c

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zappem.net/pub/io/i2c

  • v0.5.2
  • Go
  • Socket score

Version published
Created
Source

i2c - a package for accessing the i2c bus on Linux

Overview

The i2c package provides a native Go interface to the Linux i2c/smbus device drivers.

Automated package documentation for this Go package should be available from Go
Reference.

Getting started

Cross compiling to make something runable on a Raspberry Pi binary can be done as follows:

$ GOARCH=arm GOOS=linux go build example/s35390.go

This example is for a specific i2c device: a real time clock.

Another example looks at the two supported addresses for one of the Bosch pressure sensors:

$ GOARCH=arm GOOS=linux go build example/bpmx8x.go

TODOs

Explore some different i2c Raspberry Pi hats, perhaps add some more examples.

License info

The i2c package is distributed with the same BSD 3-clause license as that used by golang itself.

Reporting bugs and feature requests

The package i2c has been developed purely out of self-interest and a curiosity for physical IO projects, primarily on the Raspberry Pi. Should you find a bug or want to suggest a feature addition, please use the bug tracker.

FAQs

Package last updated on 04 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc