So I followed the instructions in the *Bad to the Bone* manual to run the
blinkled.js script on the board. However, I don't think it is working at
all. I have the board connected to the USB port of my PC and connected via
Ethernet as well. I do not have an external LED attached to port P8_13, as
I'm not sure *where* that is. There are no Pin numbers printed on the board
and I am not 100% sure where to begin looking. I figured not having the
external LED would be okay and that it shouldn't affect the USR LED from
blinking (was that a correct assumption?).
In any event, I don't really notice any rhythmic blinking in any of the
LEDs (except for the one that is pre-configured to mimic a heartbeat). T*hey
seem to just be blinking at random times and with random intensities*. (I *can
take a video upon request*, if you guys think it will help me figure out
what is going on.). I know at least one of them blinks whenever the eMMC is
accessed or something like that. *So where should I begin trouble shooting
with this issue?*
Here is the blinkled.js code for your reference:
var b = require('bonescript');
var ledPin = "P8_13";
var ledPin2 = "USR3";
b.pinMode(ledPin, b.OUTPUT);
b.pinMode(ledPin2, b.OUTPUT);
var state = b.LOW;
b.digitalWrite(ledPin, state);
b.digitalWrite(ledPin2, state);
setInterval(toggle, 5000);
function toggle() {
if(state == b.LOW) state = b.HIGH;
else state = b.LOW;
b.digitalWrite(ledPin, state);
b.digitalWrite(ledPin2, state);
}
Somethings I've already tried with the code, that haven't worked:
- Changing the USR
- Changing the interval
- Commenting out the code for the external LED
Thanks in advance for any help.
Regards,
BeagleNoob (at least I'm trying to crawl before I'm trying to run).
--
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].
For more options, visit https://groups.google.com/groups/opt_out.