dclause / dclause/hermes-five

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

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
code quality feature request good first issue
Dominant language
Rust
Stars
38
Forks
1
PR merge metrics
No merged PRs in 30d

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` trait, enabling seamless use of both `u8` and `String` literals.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.