use switch_hal::{OutputSwitch, Switch, StatefulOutputSwitch, IntoSwitch};
let mut led = pin.into_active_high_switch();
led.off().ok();
assert!(!led.is_on().unwrap());
use switch_hal::{OutputSwitch, Switch, StatefulOutputSwitch, IntoSwitch};
let mut led = pin.into_active_high_switch();
led.off().ok();
assert!(led.is_off().unwrap());