dclause/hermes-five

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

Offen

#21 geöffnet am 15.06.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (1 Fork)auto 404
code qualityfeature requestgood first issue

Repository-Metriken

Stars
 (37 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide