ftdi-i2c

1.2.0 • Public • Published

I2C library for Node.js

Installation

In your Node.js project folder, run:
npm install ftdi-i2c
On the top of your JavaScript file, add:
const I2C = require("ftdi-i2c")

Quick example

const i2c = new I2C()
if (await i2c.open(0x57)) {
    await i2c.writeRegister(0x02, 0xC0)
    const val = await i2c.readRegister(0x02)
    console.log(val)
}

Use ftdi-d2xx

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    1

Package Sidebar

Install

npm i ftdi-i2c

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

9.16 kB

Total Files

3

Last publish

Collaborators

  • kr0n4ik