Skip to content

Use of arduino libraries for pin --> interrupt #8

@thigger

Description

@thigger

LwRx was trying to use the wrong interrupt on my Pro Micro (32u4, like Arduino Leonardo). There's a function in the standard libraries to translate pins to interrupts so I've just bunged in this as a replacement for getIntNo and it works like a charm.

Thanks for the library BTW!

/**
   Get Int Number for a Pin
**/
int getIntNo(int pin) {

    return  digitalPinToInterrupt(pin);

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions