Skip to content

All interrupt pins become input ports when attachInterrupt() is executed. #1

@SuguruHarada64

Description

@SuguruHarada64

■ Corresponding version
v.2.0.0 and Before v.2.0.0

■ Contents and Occurrence conditions
The attachInterrupt function is originally a function that sets the specified interrupt pin as an input port and defines an interrupt handler. However, there was a problem in which all interrupt pins were set to input ports in the attachInterrupt function. Therefore, if a specific terminal is set as output before calling the attachInterrupt function, that terminal will be overwritten as input. The pins to be initialized are as follows
P16, P31, P137, P140

■ Workaround
1. Set the attachInterrupt() function at the beginning of the setup function.
2. 1 Set the next output terminal with pinMode.

■ Permanent measures
Fixed in v.2.1.0.

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