pub struct ButtonPins {
pub pin17: PIN17<Input<Floating>>,
pub pin26: PIN26<Input<Floating>>,
}
Expand description
The GPIO pins connected to the micro:bit’s user buttons.
Fields§
§pin17: PIN17<Input<Floating>>
The GPIO pin connected to Button A.
pin26: PIN26<Input<Floating>>
The GPIO pin connected to Button B.
Auto Trait Implementations§
impl Freeze for ButtonPins
impl RefUnwindSafe for ButtonPins
impl Send for ButtonPins
impl Sync for ButtonPins
impl Unpin for ButtonPins
impl UnwindSafe for ButtonPins
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more