Depends on what you want the leds to do. If you simply want them to shine when buttons are pressed, dont waste arduino code on that. But if you want them to blink or react to the controller state (hence code) they&#39;ll have to be controlled via some digital pins (in output state) as <meta http-equiv="content-type" content="text/html; charset=utf-8">Goyard stated, as thus you are requesting more pins (maybe the mega as I say in my first message).<div>

<br></div><div>Althought: multiplexing LEDs is very easy. 3 outputs can control 8 leds and so forth. But more coding/control effort.<br><br><div class="gmail_quote">On Sun, Apr 10, 2011 at 3:12 PM, Charles Goyard <span dir="ltr">&lt;<a href="mailto:cg@fsck.fr">cg@fsck.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Pierre Massat wrote:<br>
&gt;<br>
&gt; I also saw that the board could power LEDs. This could be very interesting,<br>
<br>
</div>Yes, but the Digital Input are &quot;shared&quot; with the digital outputs. So if<br>
you put a button on a line, you cannot put a led too. You have up to 12<br>
inputs/outputs IN TOTAL. You choose in your program if you want<br>
something to be a input or an output.<br>
<br>
Given your questions (no offense), I would go with a Mega board and not<br>
bother with multiplexing yet. That way you get a fully assembled,<br>
ready-to-use 50 inputs/outputs for your leds and buttons, + 16 analog<br>
inputs, with plenty of program space.<br>
<br>
--<br>
<font color="#888888">Charles<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Pedro Lopes (MSc)<br>contact: <a href="mailto:pedro.lopes@ist.utl.pt" target="_blank">pedro.lopes@ist.utl.pt</a><br>website: <a href="http://web.ist.utl.pt/Pedro.Lopes" target="_blank">http://web.ist.utl.pt/Pedro.Lopes</a> / <a href="http://pedrolopesresearch.wordpress.com/" target="_blank">http://pedrolopesresearch.wordpress.com/</a> | <a href="http://twitter.com/plopesresearch" target="_blank">http://twitter.com/plopesresearch</a><br>


</div>