Skip to content

Obtain port number from pin number for digitalWritePin #10

@silicondosa

Description

@silicondosa

Port number and pin number are independent parameters to the digitalWritePin function now. You could make it so any pin numbers greater than the number of pins in a port automatically sets the correct port number.

Perphas something link portNum = (pinNum%numPinsPerPort); could work. But where to get the `numPinsPerPort' value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions