We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f5fcca commit 192d9c3Copy full SHA for 192d9c3
library.properties
@@ -1,5 +1,5 @@
1
name=ezButton
2
-version=1.0.5
+version=1.0.6
3
author=ArduinoGetStarted.com
4
maintainer=ArduinoGetStarted.com (ArduinoGetStarted@gmail.com)
5
sentence=Button library for Arduino, ESP32, ESP8266...
src/ezButton.h
@@ -40,9 +40,14 @@
40
41
// Constants for button modes
42
#define INTERNAL_PULLUP INPUT_PULLUP
43
+#ifdef INPUT_PULLDOWN
44
#define INTERNAL_PULLDOWN INPUT_PULLDOWN
-#define EXTERNAL_PULLUP 2
45
-#define EXTERNAL_PULLDOWN 3
+#else
46
+#define INTERNAL_PULLDOWN INPUT
47
+#endif
48
+
49
+#define EXTERNAL_PULLUP 0xFE
50
+#define EXTERNAL_PULLDOWN 0xFF
51
52
class ezButton
53
{
0 commit comments