What size resistor are you using between the LED and the 3.3V rail?

Gerald



On Fri, Dec 6, 2013 at 10: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";
> 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