On Fri, Dec 6, 2013 at 11:31 AM, Pablo Oyarzo <[email protected]> wrote:
>
> Using this code, i tried to change the external led pin. I've tried with a
> couple of ones but doesn't work. The only ones who actully seems to work are
> like "the middle ones" on P8. Tried to use the tops and bottom ones and
> nothing. ¿Does my BBB is damage?
>
> var b = require('bonescript');
> var ledPin = "P8_25";

See http://beagleboard.org/support/bone101/#headers-black for a list
of pins already consumed by software resources.

See 
http://elinux.org/Beagleboard:BeagleBone_Black_FAQ#How_do_I_to_disable_the_HDMI_framer_so_I_can_use_the_LCD_pins_for_other_purposes.3F
for thoughts on how to open up access to those pins for other
software.

> 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, 1000);
>
> function toggle() {
>   if(state == b.LOW) state = b.HIGH;
>   else state = b.LOW;
>   b.digitalWrite(ledPin, state);
>   b.digitalWrite(ledPin2, state);
> }
>
> --
> 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.

-- 
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.

Reply via email to