Module avr_oxide::devices::led

source ·
Expand description

Simple abstraction of an LED attached to a GPIO pin.

In all honestly, it doesn’t abstract much ;). But it does allow a consistent method for using/creating by implementing the avr_oxide::devices::UsesPin trait, and being compatible with the Handle trait.

§Usage



  let green_led = OxideLed::with_pin(board::pin_d(7));

  green_led.toggle();

Structs§