title: Arduino Teensy array of Bounce not actually updating
body: <p>Im quite new to Arduino and C itself, but I can't figure out why the array does not work, while the sanity check does.</p>
  <p>It seems to me that both should operate fine. I'm guessing I'm missing some small bit of crucial info with regards to how arrays in C work.</p>
  <p>The entirity of the code:</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;Bounce2.h&gt;
  
  #define BUTTON_AMOUNT 1
  #define DEBOUNCE_INTERVAL 25
  
  const int ledPin = LED_BUILTIN;
  
  //Bounce *buttons[BUTTON_AMOUNT];
  Bounce buttons[BUTTON_AMOUNT];
  Bounce b1 = Bounce();
  
  void setup() {
    Serial.begin(31250);
  
    pinMode(ledPin, OUTPUT);
  
    for (int i = 0; i &lt; BUTTON_AMOUNT; i++) {
      Bounce b = Bounce();
      b.attach(i, INPUT_PULLUP);
      b.interval(DEBOUNCE_INTERVAL);
  
      buttons[i] = b;
  
      // buttons[i] = new Bounce();
      // (*buttons[i]).attach(i, INPUT_PULLUP);
      // (*buttons[i]).interval(DEBOUNCE_INTERVAL);
    }
  
    b1.attach(0, INPUT_PULLUP);
    b1.interval(25);
  }
  
  void loop () {
    for (int i = 0; i &lt; BUTTON_AMOUNT; i++) {
      // Serial.println(&quot;looping ...&quot;);
  
      Bounce b = buttons[i];
      b.update();
  
      if (b.rose()) {
        // Serial.println(&quot;rising edge&quot;);
        digitalWrite(ledPin, LOW);
      }
      if (b.fell()) {
        // Serial.println(&quot;falling edge&quot;);
        digitalWrite(ledPin, HIGH);
      }
    }
  
    // sanity check
    b1.update();
  
    if (b1.rose()) {
      Serial.println(&quot;B1 - rising edge&quot;);
      digitalWrite(ledPin, LOW);
    }
    if (b1.fell()) {
      Serial.println(&quot;B1 - falling edge&quot;);
      digitalWrite(ledPin, HIGH);
    }
  }
  </code></pre>