Skip to content
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

egpio in c #166

Merged
merged 2 commits into from
Jun 25, 2024
Merged

egpio in c #166

merged 2 commits into from
Jun 25, 2024

Conversation

ChrisDick
Copy link
Contributor

port expander driver and integration, IN, OUT and PWM pin functions

Description

replaces PR #133. Implements the c driver for the port expanders and integrates with c and python functions. ePin has similar API to machine.Pin with the addition of PWM open collector output. Initialised at boot and each hexpansion is reset to all inputs on removal.

port expander driver and integration, IN, OUT and PWM pin functions
@MatthewWilkes
Copy link
Member

I've read through this and tried it out a bunch. It's great.

I've removed some of the changes from #174, as the C implementation already set up the various modes in C, so the Python changes shadowed it.

I've also changed the print method of the ePin to make the repr match the init, and added one to the wrapper in tildagon.pin to do the same.

@ChrisDick ChrisDick merged commit 3e978ce into main Jun 25, 2024
3 checks passed
@ChrisDick ChrisDick deleted the ext-gpio-c-clean branch July 2, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants