Module attiny_hal::port

source ·
Expand description

Port

§Example

For full source code, please refer to the ATmega port example: atmega2560-blink.rs

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

let mut led = pins.pb2.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.