Skip to content

Add pinout for package information to STM32 devices #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 30, 2020

Conversation

salkinium
Copy link
Member

@salkinium salkinium commented Aug 29, 2020

Replacement for #40.

The type is implicitly "i/o", and thus only added if it's not.
The mapping from name to <gpio> must be done in user software, the code for this is rather simple:

def pin_name(name):
    name = name[:4]
    if len(name) > 3 and not name[3].isdigit():
        name = name[:3]
    return (name[1:2].lower(), name[2:].lower())

cc @tgree

@salkinium salkinium merged commit 7e3d7fd into modm-io:develop Aug 30, 2020
@salkinium salkinium mentioned this pull request Sep 5, 2020
@salkinium salkinium deleted the feature/pinout branch October 5, 2020 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant