Catalog npm
PACKAGE EXPLORERView in registry

2wire

npm

Easy access to I2C devices

Versions collected2
Direct dependencies3From release 1.0.1
Last observed20 Oct, 19:20 UTC

README

Current package documentation

2wire

Easy access to I2C devices.

It was designed for the Raspberry Pi (on top of the i2c_dev kernel module), but may work on different boards, too.

TypeScript definitions are included.

Example

Write register 0x58 of device addressed by 0x20 to value 42.

const TwiDevice = require('2wire').TwiDevice;

const wire = new TwiDevice('/dev/i2c-1', 0x20);
wire.writeByte(0x58, 42);

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.1Registry latest25 Dec 20173
1.0.024 Dec 20173

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
xthunderbolt/2wire

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:20 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6b27fc477f9d12cc5261e1089a8d0f1faf8e3611cb0bcced10b43b13881307df