Skip to content

INPUT_PULLDOWN Doesn't work #478

Closed
Closed
@mc-hamster

Description

@mc-hamster

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions