arduino mini & analong pins 6 & 7

Hello,

Thanks for the reply. I'm using 0007. And yes, I'm trying to access inputs 6 & 7 of 0-7. Here's the code I wrote to create smoothed midi continuous controls from the 8 analog ins. Analog 0-5 work beautifully. Any ideas?

Thanks,
Willie

// Variables:
int LED = 13;
int ANA_AVG_old[8] = {0, 0, 0, 0, 0, 0, 0, 0};
int ANA_AVG_new[8] = {0, 0, 0, 0, 0, 0, 0, 0};

// Functions:

//  compile midi message
void ConC(char cmd, char data1, char data2) {
 Serial.print(cmd, BYTE);
 Serial.print(data1, BYTE);
 Serial.print(data2, BYTE);
}

void setup() {
 //  Set MIDI baud rate:
 Serial.begin(31250);
}

void loop() {

 //Read Analog pins, make a running average, if diff then send values
 int i;
   for (i = 0; i < 8; i++) {

     ANA_AVG_new[i] = (ANA_AVG_old[i] + analogRead(i)) /2;
           if (ANA_AVG_new[i] != ANA_AVG_old[i]) { //if diff do stuff
             ConC(176, i, ANA_AVG_new[i]/8);
             analogWrite(LED, 128);
             delay(10);
             ANA_AVG_old[i] = ANA_AVG_new[i];
           } else { //else if same do less stuff
             analogWrite(LED, 0);
           }
   }

}  //END VOID LOOP