dclause/hermes-five

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

開放

#21 建立於 2025年6月15日

 (0 則留言) (0 個反應) (0 位負責人)Rust (1 個分叉)auto 404
code qualityfeature requestgood first issue

倉庫指標

星標
 (37 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南