ESP32 GPIO pins when including IrReceiverSampler.h #84
raisinbread
started this conversation in
General
Replies: 1 comment
|
Oddly enough, if I use the ESP32's gpio library, it works—even with the Infrared4Arduino includes in place. So this works (pin goes HIGH, LED lights up): But this doesn't (pin stays LOW, LED stays off): The only way to make the pinMode/digitalWrite version work is by removing the I4A includes. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
One problem I've run into. I've been using the IR library with great success, but I ran into a snag, and it's something I don't understand.
If I create a simple sketch where i do this in
setup():And this in
loop():...an LED that I've wired to that GPIO pin (labelled
D21on the ESP32-WROOM-DEV board itself) lights up just fine.If instead, all I do is add this:
#include <IrReceiverSampler.h>...after the include to Arduino.h, my pin won't go HIGH. I've tried multiple pins on my board, and none of them will go HIGH when I have
IrReceiverSampler.hincluded, but immediately work if I comment this include out. Is there something in the library that might cause this?All reactions