Registry / networking / i2c
library0.4.2rbrubygemsunverified

Interface to I2C (TWI) implementations with abstractions for I2C devices, designed for Raspberry Pi.

gem install i2c
INSTALL
IMPORT
SIG · I2C
I
i2c
networkingrubyv0.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

I2C
require 'i2c'

Write to an I2C device at address 0x40

require 'i2c' device = I2C.create('/dev/i2c-1') device.write(0x40, [0x00])
Debug
Known issues
gotchaRequires I2C kernel module and /dev/i2c-* device access
fix
Enable I2C via raspi-config or modprobe i2c-dev
affects: >= 0.4.0
Upgrade
Version history
0.4.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Meta
1
Amazon
1
Resources
i2c — gem install i2c · libregistry