Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull-ups, pull-down configuration issue #108

Open
jonturner53 opened this issue Feb 27, 2017 · 0 comments
Open

Pull-ups, pull-down configuration issue #108

jonturner53 opened this issue Feb 27, 2017 · 0 comments

Comments

@jonturner53
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant