Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Pull-ups, pull-down configuration issue #108

@jonturner53

Description

@jonturner53

I've found an apparent issue with the configuration of pullups and pulldowns for the GPIOs. While this seems to work correctly for pins that are configured as inputs, it does not seem to work for pins that are configured as outputs. Specifically, when I configure GPIO1_12 as an output pin with no pullup or pulldown using a simple test program containing the
line,

pinMode(GPIO1_12, OUTPUT, 0);

the pins file shows

pin 12 (44e10830) 00000007 pinctrl-single

(and yes, 12 is the correct pin number for GPIO1_12). Note the bits 3 and 4 are both low indicating that a pull-down is enabled. This remains the same no matter what value use in the pinMode call (-1, 0 or 1). Apparently the last argument is being ignored for OUTPUTs.

Is this a bug or a feature?

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