teensy4_bsp::board

Function led

Source
pub fn led(gpio2: &mut Port<2>, p13: P13) -> Led
Expand description

Create the board’s LED.

use teensy4_bsp as bsp;
use bsp::board;

let board::Resources { mut gpio2, pins, .. }
    = board::t40(board::instances());

let led = board::led(&mut gpio2, pins.p13);