user10270: Background:
My goal is to use sdFat library, more precisely AnalogBinLogger example. 
I want to log data from changing analog pins for example, I want to log from pin 0 to pin 3 for 5 minutes and then from pin 4 to pin 6 for another 5 mins and then from pin 7 to pin 9 for another 5 mins. that is going to be continuously which means I am going to get rid of the part where you have to enter "r" to start logging.
Regarding the time, I managed to figure it out, I am just using the value of the variable count, if my sampling rate is 1000 samples/sec for example then 5 minutes will be 1000*60*5 and the change will be done in this line:
if (Serial.available()) {
  // Stop ISR calls.
  adcStop();

to 
if (count >1000*60*5) {
  // Stop ISR calls.
  adcStop();

and this worked fine. 
My problem is with the changing pins:
const uint8_t PIN_LIST[] = {1};

I changed this line to 
uint8_t PIN_LIST[3] = {};

First I removed the word const, because it's not going to be constant anymore, and I just declared an empty array, and second I am changing the pins in the loop. 
Here is the loop after I got rid of doing the serial input:
void loop(void) {
int i;
for (i=0;i<=12;i+3)
{   
  PIN_LIST[] = {i,i+1,i+2};
  logData();
  Serial.println("done");
 }}

The problem is I get this error :

AnalogBinLogger.ino: In function 'void loop()':
AnalogBinLogger:808: error: expected primary-expression before ']'
token
AnalogBinLogger:808: error: expected primary-expression before '{'
token
AnalogBinLogger:808: error: expected `;' before '{' token

The line 808 is:
PIN_LIST[] = {i,i+1,i+2};

So this is the only error, any help please?
The code is so long (800+ lines) if this information is not enough and you need me to explain a part then just tell me. 

user10270: in case someone has the same problem
it seems like after you initialize an array this way 
uint8_t PIN_LIST[3] = {};
you won't be able to assign all the values at once:
PIN_LIST[] = {i,i+1,i+2};
instead you assign each individual value

PIN_LIST[0] = i;
PIN_LIST[1] = i+1;
PIN_LIST[2] = i+2;

and now it worked : )

10270: <p>Background:</p>

<p>My goal is to use sdFat library, more precisely AnalogBinLogger example. </p>

<p>I want to log data from changing analog pins for example, I want to log from pin 0 to pin 3 for 5 minutes and then from pin 4 to pin 6 for another 5 mins and then from pin 7 to pin 9 for another 5 mins. that is going to be continuously which means I am going to get rid of the part where you have to enter "r" to start logging.</p>

<p>Regarding the time, I managed to figure it out, I am just using the value of the variable count, if my sampling rate is 1000 samples/sec for example then 5 minutes will be 1000*60*5 and the change will be done in this line:</p>

<pre><code>if (Serial.available()) {
  // Stop ISR calls.
  adcStop();
</code></pre>

<p>to </p>

<pre><code>if (count &gt;1000*60*5) {
  // Stop ISR calls.
  adcStop();
</code></pre>

<p>and this worked fine. </p>

<p>My problem is with the changing pins:</p>

<pre><code>const uint8_t PIN_LIST[] = {1};
</code></pre>

<p>I changed this line to </p>

<pre><code>uint8_t PIN_LIST[3] = {};
</code></pre>

<p>First I removed the word <code>const</code>, because it's not going to be constant anymore, and I just declared an empty array, and second I am changing the pins in the loop. </p>

<p>Here is the loop after I got rid of doing the serial input:</p>

<pre><code>void loop(void) {
int i;
for (i=0;i&lt;=12;i+3)
{   
  PIN_LIST[] = {i,i+1,i+2};
  logData();
  Serial.println("done");
 }}
</code></pre>

<p>The problem is I get this error :</p>

<ol>
<li>AnalogBinLogger.ino: In function 'void loop()':</li>
<li>AnalogBinLogger:808: error: expected primary-expression before ']'
token</li>
<li>AnalogBinLogger:808: error: expected primary-expression before '{'
token</li>
<li>AnalogBinLogger:808: error: expected `;' before '{' token</li>
</ol>

<p>The line 808 is:</p>

<pre><code>PIN_LIST[] = {i,i+1,i+2};
</code></pre>

<p>So this is the only error, any help please?</p>

<p>The code is so long (800+ lines) if this information is not enough and you need me to explain a part then just tell me. </p>
 10270: <p>in case someone has the same problem
it seems like after you initialize an array this way </p>

<p>uint8_t PIN_LIST[3] = {};</p>

<p>you won't be able to assign all the values at once:</p>

<p>PIN_LIST[] = {i,i+1,i+2};<br>
instead you assign each individual value</p>

<ul>
<li>PIN_LIST[0] = i;</li>
<li>PIN_LIST[1] = i+1;</li>
<li>PIN_LIST[2] = i+2;</li>
</ul>

<p>and now it worked : )</p>
