We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e364f03 commit bdc5b8aCopy full SHA for bdc5b8a
cores/esp32/Arduino.h
@@ -105,7 +105,7 @@
105
#define _BV(b) (1UL << (b))
106
107
#define digitalPinToPort(pin) (((pin)>31)?1:0)
108
-#define digitalPinToBitMask(pin) (1UL << (((pin)>31)?((pin)-31):(pin)))
+#define digitalPinToBitMask(pin) (1UL << (((pin)>31)?((pin)-32):(pin)))
109
#define digitalPinToTimer(pin) (0)
110
#define analogInPinToBit(P) (P)
111
#define portOutputRegister(port) ((volatile uint32_t*)((port)?GPIO_OUT1_REG:GPIO_OUT_REG))
0 commit comments