2-Dimensional Arrays

Just figured out how to create 2-dimensional arrays. Problem is i'm hitting a brick wall on them. Seam the arduino can only handle 8 rows like this. Haven't tested the limit of columns yet. Anyone know the limits? I assume the arrays have a limit of some kind and the 2-dimensional array's limit is based on the regular array's.

Seam the arduino can only handle 8 rows like this

Why do you think there's a limit of 8 rows?

Never mind i found my problem. Only after i went and totally redid the code. :-/
First the array was like this.

int Button[15][3] = {{1, 929, 931}, // button 1
                    {2, 770, 771}, // button 2
                    {3, 610, 611}, // button 3
                    {4, 512, 513}, // button 4
                    {5, 318, 319}, // button 5
                    {6, 950, 951}, // button 1 + button 2
                    {7, 940, 942}, // button 1 + button 3
                    {8, 937, 939}, // button 1 + button 4
                    {9, 933, 934}, // button 1 + button 5
                    {10, 838, 839}, // button 2 + button 3
                    {11, 820, 821}, // button 2 + button 4
                    {12, 796, 797}, // button 2 + button 5
                    {13, 730, 731}, // button 3 + button 4
                    {14, 674, 676}, // button 3 + button 5
                    {15, 318, 319}}; // button 4 + button 5

Now i changed it to this.

int Button[3][15] = {
  // button numbers. 1-5 are the regular buttons. 6-15 are the button combinations
  { 
    1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,  13,  14,  15      }
  ,
  // button low values
  {
    929, 770, 610, 512, 318, 950, 940, 937, 933, 838, 820, 796, 730, 674, 607      }
  ,
  // button high values
  {
    931, 771, 611, 513, 319, 951, 942, 939, 934, 839, 821, 797, 731, 676, 608      }
};

Both now work but the first is easier to read. Won't be hard to fix it back. Its late. I obviously need some sleep. I'll be posting everything on this soon. Its all for using buttons and combination of buttons on a single analog pin. Can't get the AnalogButton Library to work how i want it to so i have to do it a different way. The way the buttons are wired is different then what the library calls for. Thats the big issue with the library not working right. But i don't know enough to make all teh right changes in it i'm sure.

I have manipulated the AnalogButton library to a point. I removed a line it the code which constantly printed the button number on the serial monitor. There was no way to prevent this from happening inside the example code. So i found the line and took it out. It was in the .cpp file.

if (counter >= debounce_count)
          {
            lastButtonPressed = buttons[i].id;
            counter = 0;
            previousMillis = millis();  // for detecting held             
            buttons[i].pressed();
            [glow]//Serial.println(lastButtonPressed);[/glow]
            (*pt2Function) (buttons[i].id, false);

            time = millis(); 
            return;
          }

Another change i made was to make the holdDurration variable floating. This way i could get it to register a held button for a few ms rather then it being 1 second or more. This allowed my button combos to be recognized without it picking up one of the single buttons first.

But i still have the problem of it not letting me use all 15 of my buttons and combos. In the library it declares teh max number of buttons allowed is 10 and bases the index size on that. But when i change that value to 15 or more nothing changes. I still get only buttons 1-7 to register. If i have more then the basic 7 in the example it stops seeing button 1. If i use all 15 it stops seeing button 1 and 5. Its very odd.