Skip to content

Commit 07a9e6a

Browse files
Document how to create a GpioLine
Would be nice to be able to just pass a pin you own, but this will do for now.
1 parent 22c8af2 commit 07a9e6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/exti.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ pub trait ExtiLine: Sized + sealed::Sealed {
268268
///
269269
/// All `GpioLine`s are *configurable*: They can be configured to listen for
270270
/// rising or falling edges.
271+
///
272+
/// You can create a `GpioLine` by using the `ExtiLine::from_raw_line` method.
273+
/// Lines `0..=15` are valid GPIO lines.
271274
#[derive(Copy, Clone, PartialEq, Eq)]
272275
pub struct GpioLine(u8);
273276

0 commit comments

Comments
 (0)