arduino uno - 8x8x8 led cube question..

This forum is dedicated to the author Joe Pardue as he teaches you about AVR C Programming in his workshop series.

Moderator: joepardue

Post Reply
User avatar
dacflyer
Posts: 4295
Joined: Fri Feb 08, 2002 1:01 am
Location: USA / North Carolina / Fayetteville
Contact:

arduino uno - 8x8x8 led cube question..

Post by dacflyer » Mon Feb 10, 2014 1:55 pm

hi there Mr Smiley..
electronics is not new to me, nor being able to dump a program in to a programmer.
but code programming is.. all greek to me.
i have had the honor to to build one of these led cubes for a friend..the bought it, thinking it was ready built...NOT..
anyway i have the cube built and working just fine.
with this cube i only have found 2 different codes to load in to the Uno.
the programs are not very elaborate compared to what i see on other online videos etc.
the videos appear to use a different controller..
my question is.. is there a way i can link the 2 codes that work for the uno into 1 big code ?
i tried to add them to the sketchpad separately, but when i try to verify. errors pop up when combined. but separately they work..
here is links to the 2 codes i'd like to combine if possible, and if it is not a whole lot of work.
can you help or advise?

http://www.pyroelectro.com/projects/8x8 ... 8_cube.pde

http://www.pyroelectro.com/projects/8x8 ... _8x8x8.pde

thanks...

User avatar
joepardue
Posts: 51
Joined: Sun Jul 31, 2011 6:44 am
Contact:

Re: arduino uno - 8x8x8 led cube question..

Post by joepardue » Mon Feb 10, 2014 3:40 pm

Well the length of the code really isn't relevant if it works. Often shorter code is better since it presents fewer opportunities for defects to hide.

You can't combine two sketches if each one runs independently since they both will have features that are duplicated when combined - thus the error reports.

My recommendation is to settle on one of the two, then if there is a feature of the other one that you want to add that you copy out that feature and put it in the first set of code. But you must fully understand what the first sketch is doing and what the parts you are adding will do. You can't just cut and paste without understanding what you are cutting and pasted.

Joe

User avatar
dacflyer
Posts: 4295
Joined: Fri Feb 08, 2002 1:01 am
Location: USA / North Carolina / Fayetteville
Contact:

Re: arduino uno - 8x8x8 led cube question..

Post by dacflyer » Mon Feb 10, 2014 9:23 pm

so i've noticed..lol
i need a crash course in this..
am i right to know that the code is in machine language ? not sure, might be C also.

User avatar
joepardue
Posts: 51
Joined: Sun Jul 31, 2011 6:44 am
Contact:

Re: arduino uno - 8x8x8 led cube question..

Post by joepardue » Tue Feb 11, 2014 5:28 am

Arduino uses C++ and special libraries for common tasks.

There is a ton of stuff available to learn the Arduino including my own column in Nuts&Volts and my www.arduinoclassroom.com.

Joe

User avatar
dacflyer
Posts: 4295
Joined: Fri Feb 08, 2002 1:01 am
Location: USA / North Carolina / Fayetteville
Contact:

Re: arduino uno - 8x8x8 led cube question..

Post by dacflyer » Wed Feb 12, 2014 9:30 am

thanks, i'll look into it..

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests