Skip to content

pinToInterrupt not defined for 32u4 Boards #7

@deisterhold

Description

@deisterhold

In all of the pins_arduino.h headers files the pinToInterrupt is not defined.

On line 72 in the pins_arduino.h the following needs to be added:
#define digitalPinHasPWM(p) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 11 || (p) == 13)

#define digitalPinToInterrupt(p) ((p) == 0 ? 2 : ((p) == 1 ? 3 : ((p) == 2 ? 1 : ((p) == 3 ? 0 : ((p) == 7 ? 4 : NOT_AN_INTERRUPT)))))

The following files are missing this macro:
Bluefruit Micro
Generic 32u4
Circuit Play
Feather
Flora

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