Perhaps when posting code it would be best to use the Highlight Code Syntax in Google. Not sure what formatting is used in the email but looks like from a README.
For me, I just went to the site that is in the images that Jennifer provided. The code could be pulled from there. However, I believe the issue is with the BeagleBoard site and not with the Cloud9 IDE on the board but could be related. Jon On Wed, Jul 1, 2020 at 11:31 AM Dennis Lee Bieber <[email protected]> wrote: > On Wed, 1 Jul 2020 11:28:30 +0530, in gmane.comp.hardware.beagleboard.user > jennifer Dsilva <[email protected]> > wrote: > > > 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). > > > > > -- > Dennis L Bieber > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/bjlpff5dacu71scdjg20s2vnoqsk1ced1h%404ax.com > . > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkr7TYiOyO0-Keogjk_FRr%2BiRDCR4Bky59reONeqCjypPg%40mail.gmail.com.
