Skip to content

Commit 50cc43b

Browse files
authored
Button.ino - remove beenPressed() for isPressed()
Button.ino - fix example that was using the non existing function beenPressed(), changed it for isPressed() instead
1 parent 2ead618 commit 50cc43b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Help/Button/Button.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void loop(){
5252
long timer=millis();
5353
int counter=0;
5454
while(millis()-timer<3000){
55-
if(me.beenPressed()){
55+
if(me.isPressed()){
5656
counter++;
5757
}
5858
}

0 commit comments

Comments
 (0)