dclause/hermes-five

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

Aberta

#21 aberto em 15 de jun. de 2025

 (0 comentário) (0 reação) (0 responsável)Rust (1 fork)auto 404
code qualityfeature requestgood first issue

Métricas do repositório

Stars
 (37 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador