Pioreactor / Pioreactor/pioreactor

Abstract out pin library

Open
#444 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement image/os
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.