#include "DBButton.h"
// PinSetup
#define PIN_LED_STOP 3
#define PIN_BTN_STOP 2
DBButton dbb(true);
void setup() {
Serial.begin(9600);
dbb.addButton(1, PIN_BTN_STOP);
pinMode(PIN_LED_STOP, OUTPUT);
}
void loop() {
dbb.checkButtons();
digitalWrite(PIN_LED_STOP, dbb.getButton(1));
}