I need an array of 512 but i found this was imposible for my small brain, and after reading arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1227211052/14#14 (not allowed to link on first post soz) I found out the arduino does not have enough ram.
The array is for a DMX controller so must be 512 places of storage each holding up to the value 255. This means I can't use the work around on the other thread.
Can any of you clever people think of a work around or do I have to completely rethink my DMX design?
If you need to store 8bit values, make your array of bytes instead of ints.
byte myLights[512];
If you use an int for each element, it can store bigger numbers but takes two bytes PER ELEMENT, so that table you gave would take up 1024 bytes of memory.
And if you don't need to modulate all the light you can let say:
have 25 DMX channel that have a 0-255 value and send all the rest to zero! they won't take any memory!