Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature request: Add INPUT_PULLDOWN support to pinPeripheral() #410

Open
@sslupsky

Description

The pinPeripheral() function in wiring_private.c has support for "PIO_INPUT", "PIO_INPUT_PULLUP" and "PIO_OUTPUT". It lacks support for the "PULL DOWN" configuration.

Interestingly, pinMode() does support "INPUT_PULLDOWN".

I propose that we add:

 if ( ulPeripheral == PIO_INPUT_PULLDOWN )
 {
 pinMode( ulPin, INPUT_PULLDOWN ) ;
 }

We will also need to add PIO_INPUT_PULLDOWN to the EPioType in WVariant.h.

I would be happy to submit a PR for this. Before I do, I have one question regarding suggestions of how best to set up my environment to use the ArduinoCore-samd Git repo instead of the core that is installed with the IDE.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /