react-hardware icon indicating copy to clipboard operation
react-hardware copied to clipboard

Compatible with Raspberry Pi

Open YarGnawh opened this issue 7 years ago • 2 comments

Just wondering if there's a way to use this library with Raspberry PIs and the GPIO ports.

YarGnawh avatar Mar 20 '17 18:03 YarGnawh

I think you should be able to use something like https://github.com/nebrius/raspi-io and get it working.

IIRC just make an instance of it and pass it in as the second argument and react hardware should proxy through to that as the IO layer.

iamdustan avatar Mar 20 '17 21:03 iamdustan

For posterity, got this working just as @iamdustan suggested with a very slight modification to https://github.com/iamdustan/react-hardware/tree/master/examples/johnny-five

https://gist.github.com/zachwalton/721983be1faba20670f3bbd573201404

zachwalton avatar Aug 07 '17 04:08 zachwalton