Skip to content

Commit

Permalink
Add type for gpio::AnyPin (#1067)
Browse files Browse the repository at this point in the history
This makes it possible to safely implement the InputPin and OutputPin
traits for AnyPin. Now you can convert any pin to AnyPin with the
appropriate type and use it in other library modules

Added:
- Peripheral implementation for AnyPin
- Implementation of Pin for AnyPin
- Implementation of OutputPin for AnyPin with type IsOutputPin
- Implementation of InputPin for AnyPin with type IsInputPin
- Upgrade types for AnyPin (for example InputOutputAnalogPinType ->
InputOutputPinType)
- Implementation of From<Gpio> for AnyPin with the appropriate type

Changed:
- The Gpio::degrage method returns AnyPin with the appropriate type
  • Loading branch information
Volkalex28 authored Feb 8, 2024
1 parent a08b38d commit 3a456bb
Show file tree
Hide file tree
Showing 9 changed files with 396 additions and 30 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Implementation OutputPin and InputPin for AnyPin (#1067)

### Added

- Add initial support for the ESP32-P4 (#1101)
Expand Down
Loading

0 comments on commit 3a456bb

Please sign in to comment.