We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed7b0f commit fa124f6Copy full SHA for fa124f6
src/lib.rs
@@ -74,6 +74,7 @@
74
75
extern crate embedded_hal as hal;
76
77
+use core::convert::Infallible;
78
use hal::digital::v2::OutputPin;
79
80
/// Provides an interface for setting the active channel
@@ -249,3 +250,16 @@ impl<Pins: Output> Multiplexer<Pins> {
249
250
self.enabled = false;
251
}
252
253
+
254
+/// A DummyPin for when you've got your EN (enable) pin run to GND
255
+/// (the analog multiplexer is always enabled)
256
+pub struct DummyPin;
257
+impl OutputPin for DummyPin {
258
+ type Error = Infallible;
259
+ fn set_low(&mut self) -> Result<(), Self::Error> {
260
+ Ok(())
261
+ }
262
+ fn set_high(&mut self) -> Result<(), Self::Error> {
263
264
265
+}
0 commit comments