We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 026a255 commit f23d81aCopy full SHA for f23d81a
src/gpio.rs
@@ -124,6 +124,10 @@ impl AnyPin {
124
_p: PhantomData,
125
}
126
127
+ /// Gets the pin number.
128
+ pub fn get_pin(&self) -> i32 {
129
+ self.pin
130
+ }
131
/// Gets a set of the types of pins this pin can be cast to
132
pub fn types(&self) -> PinTypes {
133
self.pin_types
@@ -1661,10 +1665,10 @@ macro_rules! define_all_pins {
1661
1665
$name: $ty::new(),
1662
1666
)*}
1663
1667
1664
- pub fn into_dynamic(self) -> [(u8, AnyPin); NUM_PINS] {
1668
+ pub fn into_dynamic(self) -> [AnyPin; NUM_PINS] {
1669
[$(
1670
$(#[cfg($cond)])?
- ($id, self.$name.into()),
1671
+ self.$name.into(),
1672
)*]
1673
1674
0 commit comments