hello,
i recently purchased a Beagle Board Black Rev. C from element 14.
i have been trying to follow along with the README.htm & START.htm that came with the Beagle Board.
in doing so, it gives a couple different sets of code to test the board using the LED lights (usr0 - usr3).
i am running this on a Acer C720P Chromebook, with the ChromeOS. the linux kernel version, per "uname -a" is:
Linux localhost 3.8.11 #1 SMP Sat Mar 7 07:02:28 PST 2015 x86_64 Intel(R) Celeron(R) 2955U @ 1.40GHz GenuineIntel GNU/Linux
and the version of ChromeOS is all up-to-date, i've checked, here it is:
Version 41.0.2272.89 (64-bit)
Platform 6680.64.0 (Official Build) stable-channel peppy_freon
Firmware Google_Peppy.4389.89.0
i am also running node.js 0.10.36 and npm v2.7.1, which i installed on the Chromebook using the node versioning manager (nvm). i have also made sure that i have installed, globally, via npm, the bonescript v0.2.4 module.
there's a piece of code in a box with "run" and "restore" buttons in the "bone101" html guide that comes on the beagle board. it runs fine by pressing the "run" button, here is that code —
var b = require('bonescript');
b.pinMode('USR0', b.OUTPUT);
b.pinMode('USR1', b.OUTPUT);
b.pinMode('USR2', b.OUTPUT);
b.pinMode('USR3', b.OUTPUT);
b.digitalWrite('USR0', b.HIGH);
b.digitalWrite('USR1', b.HIGH);
b.digitalWrite('USR2', b.HIGH);
b.digitalWrite('USR3', b.HIGH);
setTimeout(restore, 2000);
however, if i try and run this code through cloud9 ide, or my own local Chrome Dev Editor, or my other preferred cloud IDE, nitrous.io, it does not work and cannot find the usr0, usr1, usr2 or usr3 LEDs. what i get when i try and run it is —
$ node bonescript-test-2.js error: Unable to find LED: usr0 error: Unable to find LED: usr1 error: Unable to find LED: usr2 error: Unable to find LED: usr3 error: Unable to find gpio: /sys/class/leds/beaglebone::usr0/brightness error: Unable to write to /sys/class/leds/beaglebone::usr0/brightness error: Unable to find gpio: /sys/class/leds/beaglebone::usr1/brightness error: Unable to write to /sys/class/leds/beaglebone::usr1/brightness error: Unable to find gpio: /sys/class/leds/beaglebone::usr2/brightness error: Unable to write to /sys/class/leds/beaglebone::usr2/brightness error: Unable to find gpio: /sys/class/leds/beaglebone::usr3/brightness error: Unable to write to /sys/class/leds/beaglebone::usr3/brightness /home/chronos/user/Downloads/code/node_forecast_io_serve/bonescript-test/bonescript-test-2.js:10 setTimeout(restore, 4000); ^ ReferenceError: restore is not defined at Object.<anonymous> (/home/chronos/user/Downloads/code/node_forecast_io_serve/bonescript-test/bonescript-test-2.js:10:12) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:929:3
please keep in mind, i do make sure i have installed the bonescript v0.2.4 module in both the cloud IDEs, nitrous.io and cloud9, and locally on my Chromebook using the Chrome Dev Editor. even making sure bonescript module is in there, it does not work in any of these and i get the above error.
there is another code example given, this one —
var b = require('bonescript');
var state = b.LOW;
b.pinMode("USR0", b.OUTPUT);
b.pinMode("USR1", b.OUTPUT);
b.pinMode("USR2", b.OUTPUT);
b.pinMode("USR3", b.OUTPUT);
setInterval(toggle, 2000);
function toggle() {
if(state == b.LOW) state = b.HIGH;
else state = b.LOW;
b.di
}
when i try and run this one, either on the cloud IDEs, nitrous.io or cloud9, or locally on my Chromebook using the Chrome Dev Editor — and please keep in mind, i have made sure that the Bonescript v0.2.4 module is installed on each of these platforms — i get the following errors
$ node bonescript-test.js error: Unable to find LED: usr0 error: Unable to find LED: usr1 error: Unable to find LED: usr2 error: Unable to find LED: usr3
... so no matter what, even with the Bonescript v0.2.4 module installed, it doesn' see the LEDs at usr0, usr1, usr2 or usr3.
is there anything anyone can suggest to get this working for me, please?
also, how does one ssh in or see the linux screen loaded on the beagle board?
please advise. thank you.
best,
— faddah wolf
portland, oregon, u.s.a.