Pioreactor / Pioreactor/pioreactor
Abstract out pin library
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 149
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
I like how the pwm.py has abstracted out some of the details for which GPIO pin library we use (currently lgpio). We should do this for the other places with use lgpio: stirring's RPM calculator, and monitor's LED + Button.
With it abstracted, it'll be easier to change pin libraries, and better support other OSs / boards.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing pwm.py to understand how GPIO library details are abstracted, then locate the lgpio use in stirring's RPM calculator and monitor's LED and Button handling. Done means those areas use the abstraction rather than direct lgpio calls, while retaining their existing behavior and supporting future pin libraries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100