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

updated to work with libpifacedigital

Open h0ru5 opened this issue 10 years ago • 3 comments

addressing #11

h0ru5 avatar Jun 05 '15 14:06 h0ru5

Hey, I just tried this and it works. Thanks. It's running on a Raspberry Pi 2 with node v0.12.5.

To get it to compile I had to preform a couple of steps first. Perhaps this is because I missed something before trying to install (good to know if you had any thoughts on why I had to do this)

  1. I cloned libpifacedigital, ran make and make install
  2. I cloned libmcp23s17, ran make, then copied mcp23s17.h to /usr/local/include/libmcp23s17/ and copied libmcp23s17.a to usr/local/lib/
  3. In my node project I ran: npm install git://github.com/h0ru5/piface-node#566ae2810ebe9db0e68795616e85608697851092 --save-optional

And it worked. Before steps 1 & 2 it wouldn't compile.

rc1 avatar Jun 29 '15 16:06 rc1

@rc1, right. i pushed a patch to add a make install to libpifacedigital, but we'll also need one for libmcp23s17

h0ru5 avatar Jun 29 '15 18:06 h0ru5

+1 for this pull request

ArgTang avatar Oct 26 '15 16:10 ArgTang