kelly / node-i2c

Node.js native bindings for i2c-dev. Plays well with Raspberry Pi and Beaglebone.
Other
216 stars 91 forks source link

Add support for the HTU21D-F temperature and humidity sensor #35

Closed bbx10 closed 9 years ago

bbx10 commented 10 years ago

Add an option to readBytes to make the htu21df sensor work on a Raspberry Pi.

For example, read 3 bytes without sending the command/register parameter. readBytes(null, 3, function(err, data) {});

dsteinborn commented 9 years ago

The fix also works with the sh21t sensor. Thank you @bbx10

bbx10 commented 9 years ago

I found this change is no longer needed because @kib357 added plain read/write which provides the equivalent functionality. I verified plain read() works with the htu21df temperature and humidity sensor. I will try to close/delete this pull request.