Closed
Description
Good day,
I have observed that INPUT_PULLDOWN doesn't enable the internal pulldown but rather enables a pull up.
pinMode ( sensor1, INPUT_PULLDOWN );
pinMode ( sensor2, INPUT_PULLDOWN );
where sensor1 and sensor2 are gpio 14 and gpio 12 respectively.
If I set them to INPUT, then the pin behaves like a floating input. Otherwise, INPUT_PULLDOWN and INPUT_PULLUP seem to behave exactly the same.
I've take a peak into core_esp8266_wiring_digital.c and esp8266_peri.h to see if there's an easily identified typo can can see that the registers are being written to with different values depending on the mode selection.
Please advice.
Thanks!
- Jm
Metadata
Metadata
Assignees
Labels
No labels