<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The error is probably just before the include file and doesn't get parsed until the file itself.<div><br><div><div>On Mar 7, 2009, at 1:56 PM, Greg Grunest wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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-align: auto; 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: 0; "><div lang="EN-US" link="blue" vlink="blue" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><div class="Section1"><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; ">Michael,<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; ">Sorry to take so long, I sent off the email with questions yesterday morning and had to head out for what turned out to be the rest of the day yesterday.<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; ">I am using Arduino-0013 and I get similar errors but not as many.<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="maroon" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: maroon; ">In file included from C:\Program Files\arduino-0013\hardware\cores\arduino/WProgram.h:4,<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="maroon" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: maroon; ">c:/program files/arduino-0013/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="maroon" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: maroon; ">c:/program files/arduino-0013/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="maroon" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: maroon; ">c:/program files/arduino-0013/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="maroon" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: maroon; ">In file included from C:\Program Files\arduino-0013\hardware\cores\arduino/WProgram.h:6,<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; ">I’m curious what your stdlib.h file looks like.&nbsp; Mostly curious about what line 80 and 144 look like and if they are the same as mine in 0013.&nbsp; Maybe you could e-mail it to me off-list.<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="maroon" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: maroon; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; ">- Greg<font color="navy"><span style="color: navy; "><o:p></o:p></span></font></span></font></div><div><div class="MsoNormal" align="center" style="text-align: center; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><hr size="2" width="100%" align="center" tabindex="-1"></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold; ">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; "><span class="Apple-converted-space">&nbsp;</span><a href="mailto:dorkbotpdx-blabber-bounces@dorkbot.org" style="color: blue; text-decoration: underline; ">dorkbotpdx-blabber-bounces@dorkbot.org</a><span class="Apple-converted-space">&nbsp;</span>[<a href="mailto:dorkbotpdx-blabber-bounces@dorkbot.org" style="color: blue; text-decoration: underline; ">mailto:dorkbotpdx-blabber-bounces@dorkbot.org</a>]<span class="Apple-converted-space">&nbsp;</span><b><span style="font-weight: bold; ">On Behalf Of<span class="Apple-converted-space">&nbsp;</span></span></b>Donald Delmar Davis<br><b><span style="font-weight: bold; ">Sent:</span></b><span class="Apple-converted-space">&nbsp;</span>Friday, March 06, 2009 3:36 PM<br><b><span style="font-weight: bold; ">To:</span></b><span class="Apple-converted-space">&nbsp;</span>A discussion list for dorkbot-pdx (portland, or)<br><b><span style="font-weight: bold; ">Subject:</span></b><span class="Apple-converted-space">&nbsp;</span>Re: [dorkbotpdx-blabber] 5x5 matrix code help</span></font><o:p></o:p></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">Micheal,<o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p>&nbsp;</o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">The community often takes some time to catch code issues especially around times where multiple versions are released.&nbsp;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">My guess is that the code "works for the author" so it was released.<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">Don.<o:p></o:p></span></font></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">On Mar 6, 2009, at 3:23 PM, m sanders wrote:<o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><br><br><o:p></o:p></span></font></div><div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><span style="orphans: 2; widows: 2; -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; word-spacing: 0px; ">Its just the standard arduino core i believe. i mean i went into tool and switch to decimelia but it is the version of the software that i changed for use with the sanguino perhaps i should try using the copy i made? or maybe i should just bite bullet and update to 13. i wouldnt think that they (arduino) would post bad code in the examples since this was taken directly from the "direct driving an 8x8 led matrix" under the outputs section. but im sure its possible. thansk for the help!<o:p></o:p></span></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">michael<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div><div><div class="MsoNormal" align="center" style="text-align: center; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; "><hr size="1" width="100%" align="center"></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><b><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; font-weight: bold; ">From:</span></font></b><span class="apple-converted-space"><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; ">&nbsp;</span></font></span><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; ">Donald Delmar Davis &lt;<a href="mailto:ddelmardavis@gmail.com" style="color: blue; text-decoration: underline; ">ddelmardavis@gmail.com</a>><br><b><span style="font-weight: bold; ">To:</span></b><span class="apple-converted-space">&nbsp;</span>"A discussion list for dorkbot-pdx (<st1:city w:st="on"><st1:place w:st="on">portland</st1:place></st1:city>, or)" &lt;<a href="mailto:dorkbotpdx-blabber@dorkbot.org" style="color: blue; text-decoration: underline; ">dorkbotpdx-blabber@dorkbot.org</a>><br><b><span style="font-weight: bold; ">Sent:</span></b><span class="apple-converted-space">&nbsp;</span>Friday, March 6, 2009 1:18:53 PM<br><b><span style="font-weight: bold; ">Subject:</span></b><span class="apple-converted-space">&nbsp;</span>Re: [dorkbotpdx-blabber] 5x5 matrix code help<br></span></font><font color="black"><span style="color: black; "><br>Is this the stock arduino (as apposed to the sanguino core on top of the stock arduino)?<o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">If so this is a bug and should be taken up with them.&nbsp;<o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">If I get time this afternoon I will compile this code on the latest rev 13.<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">Are we having fun yet?<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">Don.<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">On Mar 6, 2009, at 10:35 AM, m sanders wrote:<o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><br><br><o:p></o:p></span></font></div><div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><span style="orphans: 2; widows: 2; word-spacing: 0px; ">Don and Greg,&nbsp;<o:p></o:p></span></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">well i know that the display is fully functional i can load the 3x3x3 led cube code and adjust the pins accordingly and get it to work just fine all be it in no paticular order to flashes of leds but thats purely due to the fact that its meant for 3d application and not for a 2d matrix, nonetheless i does confirm the funtionality of the display.&nbsp;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">i am using arduino 12 software and the standard atmel 168 that comes with dorkboard and here are the error messages i get when i try to compile:<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">In file included from /arduino-0012/hardware/cores/arduino/WProgram.h:4,<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:80: error: expected unqualified-id before 'int'<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:80: error: expected `)' before 'int'<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:80: error: expected `)' before 'int'<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:111: error: expected `)' before 'int'<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:111: error: expected `)' before 'int'<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:144: error: expected identifier before '(' token<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:144: error: expected `)' before '(' token<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:144: error: expected ',' or '...' before '(' token<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:144: error: expected initializer before ')' token<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/arduino-0012/hardware/tools/avr/bin/../lib/gcc/avr/4.3.0/../../../../avr/include/stdlib.h:176: error: '__compar_fn_t' has not been declared<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">In file included from /arduino-0012/hardware/cores/arduino/WProgram.h:6,<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">interesting side note if i cant seem to compile the original code from arduino website here is linky : &nbsp;<a href="http://www.arduino.cc/playground/Main/DirectDriveLEDMatrix?action=sourceblock&amp;ref=1" target="_blank" style="color: blue; text-decoration: underline; ">http://www.arduino.cc/playground/Main/DirectDriveLEDMatrix?action=sourceblock&amp;ref=1</a><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">i get the exact same error messages seems kinda weird, and i have no problem with reloading the 3x3x3 led cube code into chip. perhaps its time to break out the banana peals and see if i can wrap my head around this one. &nbsp;also i tried to add "(" and ")" around the "int" in all kinds of variations to debug but nothing seemed to work for me. thanks<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">michael<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div><div><div class="MsoNormal" align="center" style="text-align: center; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; "><hr size="1" width="100%" align="center"></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><b><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; font-weight: bold; ">From:</span></font></b><span class="apple-converted-space"><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; ">&nbsp;</span></font></span><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; ">Greg Grunest &lt;<a href="mailto:greg@grunest.com" target="_blank" ymailto="mailto:greg@grunest.com" style="color: blue; text-decoration: underline; ">greg@grunest.com</a>><br><b><span style="font-weight: bold; ">To:</span></b><span class="apple-converted-space">&nbsp;</span>"A discussion list for dorkbot-pdx (<st1:city w:st="on"><st1:place w:st="on">portland</st1:place></st1:city>, or)" &lt;<a href="mailto:dorkbotpdx-blabber@dorkbot.org" target="_blank" ymailto="mailto:dorkbotpdx-blabber@dorkbot.org" style="color: blue; text-decoration: underline; ">dorkbotpdx-blabber@dorkbot.org</a>><br><b><span style="font-weight: bold; ">Sent:</span></b><span class="apple-converted-space">&nbsp;</span>Friday, March 6, 2009 8:50:01 AM<br><b><span style="font-weight: bold; ">Subject:</span></b><span class="apple-converted-space">&nbsp;</span>RE: [dorkbotpdx-blabber] 5x5 matrix code help</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Hey,</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">What board / chip are you using?</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Also, what are the exact errors?&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">I tried your program and if I attempt to compile for an Arduino with an Atmel 328, I get errors in line 51 &amp; 52 of FrequencyTimer2.cpp.&nbsp; I know why this is happening but I don’t know how to fix it “elegantly”.&nbsp; If this is your problem and you want my “kludge”, I’ll send it to you.</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="black" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: black; ">Original code from FrequencyTimer2.cpp</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">47: #if defined(__AVR_ATmega168__)</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">48:&nbsp;&nbsp;&nbsp; if ( func) TIMSK2 |= _BV(OCIE2A);</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">49:&nbsp; &nbsp;&nbsp;else TIMSK2 &amp;= ~_BV(OCIE2A);</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">50: #else</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">51: &nbsp;&nbsp;&nbsp;if ( func) TIMSK |= _BV(OCIE2);</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">52: &nbsp;&nbsp;&nbsp;else TIMSK &amp;= ~_BV(OCIE2);</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">53: #endif</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Or if another list reader has a good understanding of the inner workings of the Arduino environment and cpp, maybe they could look at it and spare me the shame of distributing a kludge. ;)</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Then, I tried to compile if for an Arduino with a 168 and I get errors in stdlib.h line 111.&nbsp; I looked at the line of code in stdlib.h and I can’t see anything wrong with it.&nbsp; Hmm…</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="black" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: black; ">Stdlib.h:111</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">/** The abs() function computes the absolute value of the integer \c i.</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">&nbsp;&nbsp; \note The abs() and labs() functions are builtins of gcc.</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">*/</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; ">extern int abs(int __i) __ATTR_CONST__;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Then again, maybe you’re getting a completely different set of errors.&nbsp; It’s entirely possible.&nbsp; So knowing what error you’re getting and where would really help.</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">- Greg</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">&nbsp;</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div><div class="MsoNormal" align="center" style="text-align: center; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><hr size="2" width="100%" align="center" tabindex="-1"></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><b><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; font-weight: bold; ">From:</span></font></b><span class="apple-converted-space"><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; ">&nbsp;</span></font></span><font size="2" color="black" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; color: black; "><a href="mailto:dorkbotpdx-blabber-bounces@dorkbot.org" target="_blank" ymailto="mailto:dorkbotpdx-blabber-bounces@dorkbot.org" style="color: blue; text-decoration: underline; ">dorkbotpdx-blabber-bounces@dorkbot.org</a><span class="apple-converted-space">&nbsp;</span>[<a href="mailto:dorkbotpdx-blabber-bounces@dorkbot.org" target="_blank" ymailto="mailto:dorkbotpdx-blabber-bounces@dorkbot.org" style="color: blue; text-decoration: underline; ">mailto:dorkbotpdx-blabber-bounces@dorkbot.org</a>]<span class="apple-converted-space">&nbsp;</span><b><span style="font-weight: bold; ">On Behalf Of<span class="apple-converted-space">&nbsp;</span></span></b>m sanders<br><b><span style="font-weight: bold; ">Sent:</span></b><span class="apple-converted-space">&nbsp;</span>Thursday, March 05, 2009 9:40 PM<br><b><span style="font-weight: bold; ">To:</span></b><span class="apple-converted-space">&nbsp;</span><a href="mailto:dorkbotpdx-blabber@dorkbot.org" target="_blank" ymailto="mailto:dorkbotpdx-blabber@dorkbot.org" style="color: blue; text-decoration: underline; ">dorkbotpdx-blabber@dorkbot.org</a><br><b><span style="font-weight: bold; ">Subject:</span></b><span class="apple-converted-space">&nbsp;</span>[dorkbotpdx-blabber] 5x5 matrix code help</span></font><font color="black"><span style="color: black; "><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">Hey all, so i am new to the whole cult thing and am needing some help with some code i am tryin to adapt from the arduino site to make this 5x5 matrix work directly off dork board problem is that there are errors and im not savvy enough with programming to work it out, more of a production kinda guy not so much a software kinda guy. anyway i digress and will thank you all in advance for any help you might be about to give me.&nbsp;<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">michael<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">here is code. also as a side not you can seei jusr shortened the defined space and changed row and column things to reflec the size of my matrix. there is a part in the code that speaks of pin 11 and i am not using it so maybe thats one problem but, the error messages have no mention of this, and i have installed all libraries in the correct locations and everything. or anyone have some 5x5 code layin around? thanks again!<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">/*<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;* Show messages on an 5x5 led matrix,<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;* scrolling from right to left.<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;*&nbsp;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;* Uses FrequencyTimer2 library to<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;* constantly run an interrupt routine<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;* at a specified frequency. This<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;* refreshes the display without the<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;* main loop having to do anything.<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;*<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;*/<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">#include &lt;FrequencyTimer2.h><o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">#define SPACE { \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{0, 0, 0, 0, 0}, &nbsp;\<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{0, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{0, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{0, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{0, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">#define H { \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 1}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 1}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 1, 1, 1, 1}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 1}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 1}, \<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">#define E &nbsp;{ \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 1, 1, 1, 1}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 1, 1, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 1, 1, 1, 1}, \<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">#define L { \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 1, 1, 1, 1}, \<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">#define O { \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{0, 1, 1, 1, 0}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 1}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 1}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{1, 0, 0, 0, 1}, \<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;{0, 1, 1, 1, 0}, \<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">byte col = 0;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">byte leds[5][5];<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">// pin[xx] on led matrix connected to nn on Arduino (-1 is dummy to make array start at pos 1)<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">int pins[11]= {-1, 4, 3, 14, 17, 13, 12, 10, 9, 8, 6};<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">// col[xx] of leds = pin yy on led matrix<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">int cols[5] = {pins[13], pins[3], pins[4], pins[10], pins[06]};<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">// row[xx] of leds = pin yy on led matrix<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">int rows[5] = {pins[9], pins[14], pins[8], pins[12], pins[1]};<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">const int numPatterns = 6;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">byte patterns[numPatterns][5][5] = {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;H,E,L,L,O,SPACE<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">};<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">int pattern = 0;<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">void setup() {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;// sets the pins as output<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;for (int i = 1; i &lt;= 10; i++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;pinMode(pins[i], OUTPUT);<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;// set up cols and rows<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;for (int i = 1; i &lt;= 5; i++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;digitalWrite(cols[i - 1], LOW);<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;for (int i = 1; i &lt;= 5; i++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;digitalWrite(rows[i - 1], LOW);<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;clearLeds();<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;// Turn off toggling of pin 11<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;FrequencyTimer2::disable();<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;// Set refresh rate (interrupt timeout period)<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;FrequencyTimer2::setPeriod(2000);<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;// Set interrupt routine to be called<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;FrequencyTimer2::setOnOverflow(display);<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;setPattern(pattern);<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">void loop() {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;pattern = ++pattern % numPatterns;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;slidePattern(pattern, 60);<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">void clearLeds() {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;// Clear display array<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;for (int i = 0; i &lt; 5; i++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;for (int j = 0; j &lt; 5; j++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp; &nbsp;leds[i][j] = 0;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">void setPattern(int pattern) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;for (int i = 0; i &lt; 5; i++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;for (int j = 0; j &lt; 5; j++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp; &nbsp;leds[i][j] = patterns[pattern][i][j];<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">void slidePattern(int pattern, int<span class="Apple-converted-space">&nbsp;</span><st1:state w:st="on"><st1:place w:st="on">del</st1:place></st1:state><span class="Apple-converted-space">&nbsp;</span>) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;for (int l = 0; l &lt; 5; l++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;for (int i = 0; i &lt; 4; i++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp; &nbsp;for (int j = 0; j &lt; 5; j++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;leds[j][i] = leds[j][i+1];<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp; &nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;for (int j = 0; j &lt; 5; j++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp; &nbsp;leds[j][4] = patterns[pattern][j][0 + l];<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;delay(<span class="Apple-converted-space">&nbsp;</span><st1:state w:st="on"><st1:place w:st="on">del</st1:place></st1:state><span class="Apple-converted-space">&nbsp;</span>);<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">// Interrupt routine<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">void display() {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;digitalWrite(cols[col], LOW); &nbsp;// Turn whole previous column off<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;col++;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;if (col == 5) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;col = 0;<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;for (int row = 0; row &lt; 5; row++) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;if (leds[col][4 - row] == 1) {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp; &nbsp;digitalWrite(rows[row], LOW); &nbsp;// Turn on this led<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;else {<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp; &nbsp;digitalWrite(rows[row], HIGH); // Turn off this led<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp; &nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;}<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;digitalWrite(cols[col], HIGH); // Turn whole column on at once (for equal lighting times)<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;&nbsp;delayMicroseconds(900); &nbsp;// Delay so that on times are longer than off time = brighter leds<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">}<o:p></o:p></span></font></div></div></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; ">&nbsp;<o:p></o:p></span></font></div></div></div></div></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" color="black" face="Helvetica"><span style="font-size: 9pt; font-family: Helvetica; color: black; "><br>_______________________________________________<br>dorkbotpdx-blabber mailing list<br><a href="mailto:dorkbotpdx-blabber@dorkbot.org" target="_blank" ymailto="mailto:dorkbotpdx-blabber@dorkbot.org" style="color: blue; text-decoration: underline; ">dorkbotpdx-blabber@dorkbot.org</a><br><a href="http://music.columbia.edu/mailman/listinfo/dorkbotpdx-blabber" target="_blank" style="color: blue; text-decoration: underline; ">http://music.columbia.edu/mailman/listinfo/dorkbotpdx-blabber</a><o:p></o:p></span></font></div></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><o:p>&nbsp;</o:p></span></font></div></div></div></div></div></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" color="black" face="Helvetica"><span style="font-size: 9pt; font-family: Helvetica; color: black; "><br>_______________________________________________<br>dorkbotpdx-blabber mailing list<br><a href="mailto:dorkbotpdx-blabber@dorkbot.org" style="color: blue; text-decoration: underline; ">dorkbotpdx-blabber@dorkbot.org</a><br><a href="http://music.columbia.edu/mailman/listinfo/dorkbotpdx-blabber" style="color: blue; text-decoration: underline; ">http://music.columbia.edu/mailman/listinfo/dorkbotpdx-blabber</a><o:p></o:p></span></font></div></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p>&nbsp;</o:p></span></font></div></div></div></div>_______________________________________________<br>dorkbotpdx-blabber mailing list<br><a href="mailto:dorkbotpdx-blabber@dorkbot.org" style="color: blue; text-decoration: underline; ">dorkbotpdx-blabber@dorkbot.org</a><br><a href="http://music.columbia.edu/mailman/listinfo/dorkbotpdx-blabber" style="color: blue; text-decoration: underline; ">http://music.columbia.edu/mailman/listinfo/dorkbotpdx-blabber</a></o:smarttagtype></o:smarttagtype></o:smarttagtype></div></span></blockquote></div><br></div></body></html>