for (i = 0; i < 20; i = i + 1) {
data[i]=myArray1[i];
data[i]=myArray2[i];
radio.write(data,sizeof(data));
delay(5000);
}
What is the point of putting the 0th value from myArray1 into the 0th element of data, and then putting the 0th element of myArray2 in the same location?
What is the point of sending all 1000 bytes of data after putting 1 value in the array?
Why do you need a 500 element array to hold 20 ints?
Why do you need ints to hold byte values?
Why do you send data 20 times, and read data 25 times?
So many questions...