MCPcopy Index your code
hub / github.com/endbasic/endbasic / with_gpio_pins

Method with_gpio_pins

std/src/lib.rs:340–343  ·  view source on GitHub ↗

Overrides the default hardware-based GPIO pins with the given ones.

(mut self, pins: Rc<RefCell<dyn gpio::Pins>>)

Source from the content-addressed store, hash-verified

338
339 /// Overrides the default hardware-based GPIO pins with the given ones.
340 pub fn with_gpio_pins(mut self, pins: Rc<RefCell<dyn gpio::Pins>>) -> Self {
341 self.gpio_pins = Some(pins);
342 self
343 }
344
345 /// Overrides the default yielder with the given one.
346 pub fn with_yielder(mut self, yielder: Rc<RefCell<dyn Yielder>>) -> Self {

Callers 3

new_machine_builderFunction · 0.80
build_machineMethod · 0.80
make_mock_machineFunction · 0.80

Calls

no outgoing calls

Tested by 1

build_machineMethod · 0.64