Expand description
GPIO & Pin control.
This module contains a Pins struct which represents all pins of the board. The Pins
struct is most easily constructed using the niti_hal::pins!() macro:
let dp = niti_hal::Peripherals::take().unwrap();
let pins = niti_hal::pins!(dp);Additionally, the mode submodule contains all valid types for the MODE generic parameter
of a pin. The Pin type-alias represents a pin which can represent any of the pins
dynamically (while usually each pin has its own type).
Check the documentation for avr_hal_generic::port::Pin for a detailed explanation of GPIO
pins in avr-hal.
Modules§
- GPIO pin modes
Structs§
- Pins of the Arduino Mega 2560 and Arduino Mega 1280.
Traits§
Type Aliases§
A0A1A2A3A4A5A6A7A8A9A10A11A12A13A14A15D0/RX0D1/TX0D2D3D4D5D6D7D8D9D10D11D12D13D14/TX3D15/RX3D16/TX2D17/RX2D18/TX1D19/RX1D20/SDAD21/SCLD22D23D24D25D26D27D28D29D30D31D32D33D34D35D36D37D38D39D40D41D42D43D44D45D46D47D48D49D50D51D52D53- Type-alias for a pin type which can represent any concrete pin.