From 3f2da0c650c67ff0b9b2fa26b37bfdab313630ff Mon Sep 17 00:00:00 2001 From: ShaggyDog18 Date: Wed, 27 Jan 2021 12:35:38 +0200 Subject: [PATCH] renamed tripleClick() to multiClick() --- examples/SimpleOneButton/SimpleOneButton.ino | 2 +- src/OneButton.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/SimpleOneButton/SimpleOneButton.ino b/examples/SimpleOneButton/SimpleOneButton.ino index 526e046..6d9a52e 100644 --- a/examples/SimpleOneButton/SimpleOneButton.ino +++ b/examples/SimpleOneButton/SimpleOneButton.ino @@ -19,7 +19,7 @@ // 23.06.2020 synch up with the original library version 1.5; added attachPressStart() function; test includes almost all functions //-------------------- #include "OneButton.h" -// 3256 / 298 +// 3260 / 302 // Setup a new OneButton on pin A1. OneButton button(A1, true); diff --git a/src/OneButton.h b/src/OneButton.h index c72d994..4061b68 100644 --- a/src/OneButton.h +++ b/src/OneButton.h @@ -42,6 +42,8 @@ typedef void (*callbackFunction)(void); #endif } +#define attachTripleClick attachMultiClick // for compatibility with previous version + class OneButton { public: