Pages: [1]   Go Down
Author Topic: Big array issues, help  (Read 1046 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I've built an 8x8x8 LED cube using shift registers and POV to display cool patterns. The first version of the code involved only one pattern being displayed at a time, ie only one array programmed. This has become somewhat of a pain because each time i want to switch animations i have to reprogram. An example of an animation would look like:

byte data[][65]={
{ B10000000, B01000000, B00100000, B00010000, B00001000, B00000100....

I am currently working on the second version of the code that will allow me to change patterns on the fly via serial communications. I'm trying to give each pattern its own array, and then choose which array is being displayed. But when I reach a certain number of array entries, things stop working (random stuff gets displayed or everything goes black).

Is there a way to fix this?

Global Moderator
Offline Offline
Shannon Member
Karma: 212
Posts: 13085
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In a word ... PROGMEM.  The Flash Library from Mikal Hart makes it easy...

Pages: [1]   Go Up
Jump to: