dclause/hermes-five

Use `Into<PinIdOrName>` in all device/expanders constructors

オープン

#21 opened on 2025/06/15

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (1 件のフォーク)auto 404
code qualityfeature requestgood first issue

Repository metrics

Stars
 (37 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Motivation: A PinIdOrName enum was introduced to simplify the use of digital and analog pins (e.g., "D11", "A11"). To make the API more ergonomic and consistent, this enum should be accepted in all constructors that require a pin, including device drivers and expanders.

API Change: No breaking change. This is a backward-compatible improvement via the Into<PinIdOrName> trait, enabling seamless use of both u8 and String literals.

コントリビューターガイド