Pixel to LED, the best way to do it?
Hey everybody im currently working on an art installation and I have to figure out how to send packets (containing LED nr, R, G, B) through the serial object in Max msp. I have problems figuring out how to send many packets through the serial object relatively fast.
I have an arduino code which read the data from Max Msp and sends data to an adafruit RGB LED string (LP8806) with 120 LEDs, see the attached.
I want jit.spill to turn on LEDs with 1 and turn them off with 0!
How can I go through the list of 0´s and 1´s and send the packet through the serial object- In a fast way
see the attached max msp file and feel free to change something in the arduino code if you know!
Did you try the iter object ? Alternatively perhaps going directly to the serial with jit.iter ?
Also the actual message object you use takes a lot of juice, were you planning on leaving it in the patch ?
Hi Bjoern (Danish?) - I'll point you towards Gav's thread, since he recently built a big project around just this process.
Are you sure you want to simply turn them on or off? You *could* do pwm on the LEDs and have actual brightness levels for them...