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

pinMode OUTPUT sets HIGH after digitalWrite set LOW on Arduino Due #3310

Closed
Assignees
Labels
@3esmit

Description

Architecture: SAM
Board: Arduino Due
When the pin is defined as OUTPUT it automatically sets HIGH in that pin, even when digitalWrite previously set it LOW. This is different behavior from AVR.

I need all DO set low at startup, so in Arduino/hardware/arduino/sam/cores/arduino/wiring_digital.c. To make pinMode output LOW by default, change PIO_OUTPUT_1 to PIO_OUTPUT_0.

See http://forum.arduino.cc/index.php?topic=185230.0 and http://forum.arduino.cc/index.php?topic=154869.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

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