I was just testing the new version and I now decided to test your readme as well :)
If I use this:
var wire = new i2c(4, device:'/dev/i2c-1');
I get this error:
var wire = new i2c(4, device:'/dev/i2c-1'); // point to your i2c device, debug
^
SyntaxError: Unexpected token :
at Module._compile (module.js:437:25)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Hi,
I was just testing the new version and I now decided to test your readme as well :)
If I use this:
I get this error:
var wire = new i2c(4, device:'/dev/i2c-1'); // point to your i2c device, debug ^ SyntaxError: Unexpected token : at Module._compile (module.js:437:25) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.runMain (module.js:492:10) at process.startup.processNextTick.process._tickCallback (node.js:244:9)
With braces it works as I would expect:
Grtz,
Remco