A library for controlling Finch Robots with Node.JS.
This library is still in development and not considered stable.
node-finch-robot uses the node-hid library to communicate with the USB device. node-hid requires system level dependencies in order to control the USB device. On Linux you'll need
libudev-dev or for Ubuntu versions missing libusb.h, you'll need
libusb-1.0-0-dev. Now require the module and initialise an instance.
sudo apt-get install -y libusb-1.0-0-dev
var finch = ;var device = ;
If there's an issue finding or connecting to the device an error will be thrown by the second line.
After you have a device successfully initialised you can issue the Finch commands...
devicedevice // Direction assumed forward
This will make the Finch's LED colour cycle.
These commands are either not implemented or not working quite yet.