Page 1 of 1

SIMPLE LED script

Posted: 19 Apr 2012 18:25
by joebataz
Does anyone have a SIMPLE way to turn on/off a single LED in an array? I just can't make any sense of how LED arrays actually work.

THANKS,

joeb

Re: SIMPLE LED script

Posted: 20 Apr 2012 00:22
by iamdamien
Hey Joe,

Hope this helps:
LEDs.jzlib
(17.08 KiB) Downloaded 223 times
Enjoy,
Damien

Re: SIMPLE LED script

Posted: 20 Apr 2012 01:59
by joebataz
Thanks Damien. Got me where I needed to go
:)

joeb

Re: SIMPLE LED script

Posted: 20 Apr 2012 02:11
by iamdamien
NP. Here's an even better resource: http://www.jazzmutant.com/workshop_tuto ... id=vectors

Enjoy,
Damien

Re: SIMPLE LED script

Posted: 20 Apr 2012 02:23
by joebataz
I keep see in' the JazzMutant refs. One of these days I'm gonna go check it out.....
Interesting list of locations, Albuquerque, Amsterdam, Paris.....
You must have a teleporter, a private plane, or a lot of money.

thanks mr d!

joeb

Re: SIMPLE LED script

Posted: 22 Apr 2012 23:55
by iamdamien
Hey Joe,

I'm still trying to figure out a way to address specific LEDs in an array (via script)... alas. Any ideas?

-D
joebataz wrote:You must have a teleporter, a private plane, or a lot of money.
If only...

Re: SIMPLE LED script

Posted: 24 Apr 2012 15:36
by axel_liine
Make sure the BarGraph option is turned off, then you should be able to set the "value" variable of the Leds object to any set of 0 and 1s :

Code: Select all

Leds.value = {0,1,0,0,0,1};
To address just a single led :

Code: Select all

Leds.value[3] = 1;