Module atmega_hal::port

source ·
Expand description

Port

§Example

Complete example source code can be found in the repository: atmega2560-blink.rs

let dp = atmega_hal::Peripherals::take().unwrap();
let pins = atmega_hal::pins!(dp);

let mut led = pins.pb7.into_output();

loop {
    led.toggle();
    delay_ms(1000);
}

Modules§

Structs§

Enums§

Traits§

Type Aliases§

  • Type-alias for a pin type which can represent any concrete pin.