-
Notifications
You must be signed in to change notification settings - Fork 17
galileo io: install and test
Galileo-io is a IO module for Gen1,Gen2 of Galileo and Edison that makes it compatable with jonney-five - so you can build robots and other physical things with javascript. It's by Rick Waldron from Bocoup. He recently added MRAA compatibility to the module so that if you have mraa it will use it. This resolves many of the issues we were having with the sysfs initiation and adds support for fast GPIO, i2c, SPI, PWM and other functionality built into MRAA.
The latest changes to galileo-io have not been pushed to npm so I pulled directly from the git repo:
git clone https://github.com/rwaldron/galileo-io.git
cd galileo-io
npm install
I had in issue during my install due to a corrupted cache:
15694 error code ENOENT
15695 error errno 34
15696 verbose exit [ 34, true ]
This resolved the issue by clearing out the cache. (I think I had an install interupted)
rm -rf ~/.npm
To test if the install was correct, span an led from the ground pin (short leg) to pin 9 (long leg) - and run the blink.js example in eg:
cd eg
node blink.js
You should see it blinking every 500 ms!