<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hey Fernando,</div><div><br></div><div>The protocol is documented here:</div><div><a href="http://firmata.org/wiki/Protocol">http://firmata.org/wiki/Protocol</a></div><div><br></div><div>A digital message will give you a 'port', which is 8 pins. &nbsp;The digital command is 0x90, and that's combined with the port#, so 0x90 means digital port 0, 0x91 means digitial port 1, etc. all the way to 0x9f which is port 15. &nbsp;Pins 24-37 are on port 3, so you want to look for messages starting with 0x93.</div><div><br></div><div>hc</div><br><div><div>On Jul 7, 2011, at 9:41 PM, FernandoG wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello<br><br>I am triyng to expand Pduino to use with arduino mega. I founded Pduino-0.5beta6-mega patch in this web site <a href="http://www.pjrc.com/tmp/firmata/readme.html">http://www.pjrc.com/tmp/firmata/readme.html</a> ,the patch works prety well but its implemented until digital pin 23 and i need to implement the rest of the pins. If I add the rest of digital pins in /pd sending digital outs/pd generate digital out messages/ just like other pins are implemented, pins from 24 to 37 are not working. I has been trying to understand how the messages system works but i cant really understand. By example which kinds of values i must get if i print values from arduino/pd command processing/pd digital-out&nbsp; outputs? where i can found and explanation of how the messages sistem works, by example in the subpatch /pd digital-out ?<br> <br>thanks<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">http://lists.puredata.info/listinfo/pd-list</a><br></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br class="Apple-interchange-newline">----------------------------------------------------------------------------<br></div><div><br></div>I hate it when they say, "He gave his life for his country." &nbsp;Nobody&nbsp;gives their life for anything. &nbsp;We steal the lives of these kids. &nbsp;-Admiral Gene LeRocque<br></span></div> </div><br></body></html>