pub fn with_output_inverter(mut self, invert: bool) -> Self {
        self.flags.set(OutputFlags::InvertOutput, invert);
        self
    }
Consumes the signal and returns a new one that inverts the peripheral's
output signal.
esp-hal/src/gpio/interconnect.rs