node-rasp2c icon indicating copy to clipboard operation
node-rasp2c copied to clipboard

Callback/event for init function

Open PonomarovP opened this issue 10 years ago • 0 comments

I use your module for Phyboard-Wega-AM335x board, it has no "i2c-0" device and if I want to set something on program start I receive error as this action goes before "exec". Something like

app.listen(3000); console.log('Listening on port 3000'); rasp2c.set('0x20', '0x00', '0xFF', function (err, result) { //configure MCP23017 pins as inputs if (err) { console.log(err); } });

Will first show "Error: Could not open file /dev/i2c-0' or/dev/i2c/0': No such file or directory", then initialize

PonomarovP avatar Jun 09 '15 13:06 PonomarovP