SIMPLE LED script

Discuss Lemur and share techniques.
Post Reply
joebataz
Regular
Posts: 154
Joined: 28 Feb 2012 16:50
Location: Anthem, AZ USA
Contact:

SIMPLE LED script

Post 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
iamdamien
Newbie
Posts: 10
Joined: 27 Mar 2012 02:30

Re: SIMPLE LED script

Post by iamdamien »

Hey Joe,

Hope this helps:
LEDs.jzlib
(17.08 KiB) Downloaded 221 times
Enjoy,
Damien
joebataz
Regular
Posts: 154
Joined: 28 Feb 2012 16:50
Location: Anthem, AZ USA
Contact:

Re: SIMPLE LED script

Post by joebataz »

Thanks Damien. Got me where I needed to go
:)

joeb
iamdamien
Newbie
Posts: 10
Joined: 27 Mar 2012 02:30

Re: SIMPLE LED script

Post by iamdamien »

NP. Here's an even better resource: http://www.jazzmutant.com/workshop_tuto ... id=vectors

Enjoy,
Damien
joebataz
Regular
Posts: 154
Joined: 28 Feb 2012 16:50
Location: Anthem, AZ USA
Contact:

Re: SIMPLE LED script

Post 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
iamdamien
Newbie
Posts: 10
Joined: 27 Mar 2012 02:30

Re: SIMPLE LED script

Post 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...
axel_liine
Liine Staff
Posts: 126
Joined: 14 Dec 2011 12:12

Re: SIMPLE LED script

Post 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;
Post Reply