0.4.9 • Published 6 years ago

devasys-i2c v0.4.9

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Devasys Red Card I2C Driver For NodeJS

Installation

npm i devasys-i2c --save

Usage

import devasys = require("devasys-i2c");

var devasysI2c = new devasys.DevasysI2C();

// Get Dll Version
var dllVersion = devasysI2c.GetDllVersion();
console.log('dllVersion :' + dllVersion);

// Open device
device.Open();

// WriteI2C
// first parameter - i2c address,
// second parameter - array of bytes to write
device.WriteI2C(0xF0, [0x10, 0xE0]);
device.WriteI2C(0xF0, [0x21]);

// ReadI2C
// first parameter - i2c address
// second parameter - number of bytes to read
// returns array of bytes with result

var result = device.ReadI2C(0xF0, 1);
0.4.9

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago