kelly / node-i2c

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

How can I write a command to a specific memory register ? #86

Closed nemr closed 7 years ago

nemr commented 7 years ago

Hello ,

How can I write a command to a specific memory register using this NPM ?

kelly commented 7 years ago
wire.writeBytes(register, [command], function(err) {});

or

wire.writeByte(register);
wire.writeByte(command);
nemr commented 7 years ago

Thanks :)