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 12045d3 commit fb60efdCopy full SHA for fb60efd
cores/esp32/esp32-hal-gpio.h
@@ -42,7 +42,9 @@ extern "C" {
42
43
//GPIO FUNCTIONS
44
#define INPUT 0x01
45
-#define OUTPUT 0x02
+// Changed OUTPUT from 0x02 to behave the same as Arduino pinMode(pin,OUTPUT)
46
+// where you can read the state of pin even when it is set as OUTPUT
47
+#define OUTPUT 0x03
48
#define PULLUP 0x04
49
#define INPUT_PULLUP 0x05
50
#define PULLDOWN 0x08
0 commit comments