Changed duration() to currentDuration() and added examples

This commit is contained in:
Thomas O Fredericks
2021-08-03 10:59:00 -04:00
parent 28afcafa6a
commit 2ba0be8f83
11 changed files with 238 additions and 59 deletions
+1
View File
@@ -66,6 +66,7 @@ void loop() {
// <Button>.pressed() RETURNS true IF THE STATE CHANGED
// AND THE CURRENT STATE MATCHES <Button>.setPressedState(<HIGH or LOW>);
// WHICH IS LOW IN THIS EXAMPLE AS SET WITH button.setPressedState(LOW); IN setup()
if ( button.pressed() ) {
// TOGGLE THE LED STATE :