Hello all. I'm trying to use the button.h library to program two buttons. I started by just trying to get the example from the arduino playground (see below) to work. I get the error no matching function for call to 'Button::Button(int,int)'. Why doesn't this work? I've installed the button.h library and was able to pick it from the library list and add it to this sketch.
#include <Button.h>
/*
create a Button object at pin 12
connect button between pin 12 and GND
*/
Button button = Button(7,PULLUP);
void setup(){
pinMode(13,OUTPUT); //debug to led 13
}
void loop(){
if(button.isPressed()){
digitalWrite(13,HIGH);
}else{
digitalWrite(13,LOW);
}
}