Please don't post screen IMAGES... Select the TEXT, copy, and then
paste it in a message.
A screen image is useless for people using text-to-speech engines or
text-only news clients (note: I read this via gmane's news server, not as
email), and also useless for responders who would comment on specific
lines.
For me to be able to read a screen image, I have /save/ the file to my
computer, then open it using some graphics editor, and finally delete the
file to avoid cluttering up my system with spurious junk.
Having said all that...
If I try to navigate to that apparent path (starting from the "getting
started" page, I end up on beaglebone.org web server, with some option
apparently to provide the route to my beagle.
https://beagleboard.org/Support/BoneScript/demo_blinkled/
Problem #1: My BBB is connected to my NAT router/firewall. Providing my
BBB internal LAN private IP is not going to result in a connection:
192.168.1.69
"""
Exception: Please perform setTargetAddress on a valid target
"""
Try connecting to Cloud9 http://beaglebone.local:3000/ide.html (if that
doesn't work -- ie; you only have a USB connection -- replace
beaglebone.local with the IP number of the USB connection 192.168.7.2
[Windows: use .6. rather than .7. for Mac]).
Navigate down to cloud9/BeagleBone/pru; (double-) click blinkLED.js to
open the editor window.
"""
#!/usr/bin/env node
////////////////////////////////////////
// blinkLED.js
// Blinks the USR LEDs and P9_14.
// Wiring: P9_14 connects to the plus lead of an LED. The negative lead
of the
// LED goes to a 220 Ohm resistor. The other lead of the resistor
goes
// to ground.
// Setup:
// See:
////////////////////////////////////////
const b = require('bonescript');
const leds = ["USR0", "USR1", "USR2", "USR3", "P9_14"];
for(var i in leds) {
b.pinMode(leds[i], b.OUTPUT);
}
var state = b.HIGH;
for(var i in leds) {
b.digitalWrite(leds[i], state);
}
setInterval(toggle, 250);
function toggle() {
if(state == b.LOW)
state = b.HIGH;
else
state = b.LOW;
for(var i in leds) {
b.digitalWrite(leds[i], state);
}
}
"""
(see how friendlier cut/paste of the /text/ is)
Click >Run
(Ignore debugger warnings -- the Beagle should be flashing all four
on-board LEDs).