gpiodevice: deprecate get_pins_for_platform

オープン
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

まず、gpiodevice-python における現在の get_pins_for_platform の実装と、関連するプラットフォーム処理コードを確認してください。ユーザーが指定した labels または (LineRequest, offset) タプルの適切な処理を扱っているため、最初に pull request #4 を読んでください。完了時には、提案されている非推奨化と不要なプラットフォーム固有処理の削除に沿う形でライブラリを整える必要があります。

索引モデルが issue の本文から書いたものです。

説明

Along with get_pins_for_platform, most platform handling code should probably be dropped. It causes more problems than it solves, requiring downstream libraries to maintain a list of supported platforms and pin labels.

If manufacturers want their 40-pin GPIO header to be compatible with gpiod based libraries out of the box, they will need to copy the Raspberry Pi line labelling convention normalised here: https://github.com/raspberrypi/linux/commit/bd9542b8271ccb251490c814e9237ed94d7ceb56

Otherwise, users can just supply their own labels or (LineRequest, offset) tuples to describe the pins they want the library to use. Support for handling the latter case gracefully at the gpiodevice level is in progress here: https://github.com/pimoroni/gpiodevice-python/pull/4

主要言語
Python
スター
3
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pimoroni/gpiodevice-python のほかの issue

pimoroni/gpiodevice-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。