Module 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§

mode
GPIO pin modes

Structs§

Dynamic
PB0
PB1
PB2
PB3
PB4
PB5
Pins

Enums§

DynamicPort

Traits§

PinMode
PinOps

Type Aliases§

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