Help on building an array ,

// BOARD

// Arduino Mega 2560 Rev3

byte DisplayData1[5];

void setup(){

DisplayData1[0] = 0;
DisplayData1[1] = 25;
DisplayData1[2] = 14;
DisplayData1[3] = 255;
DisplayData1[4] = 254;

//byte DisplayData1[5] = { 0, 25, 14, 255, 254 }; Won’t compile
/* I will use this to store byte data to a big array to
send to a graficdisplay , but it will not give any data from the
array other than 0 to the portK out , the other way above is
not a way to go for me , it’s to much data to handel
*/
}

void loop() {

for (int j= 0; j < 5; j++) {
/* Example
(DDRK = 11111111)
Here i will catch byte data from DisplayData[j]
and send it to a port set för 1 byte output
(PORTK = DisplayData1[j]
*/
}

}

Have you tried this?

byte DisplayData1[] = { 0, 25, 14, 255, 254 };

void setup()
{ 
}

etc

THANKS it worked ! , didn't find the answer in ref. Many thanks !

didn't find the answer in ref.

Because the reference section is a supplement to your C/C++ book, where the answer is. You DO have one, don't you?