Sets a global variable to an initial value.
(mut self, defs: Vec<GlobalDef>)
| 332 | |
| 333 | /// Sets a global variable to an initial value. |
| 334 | pub fn with_globals(mut self, defs: Vec<GlobalDef>) -> Self { |
| 335 | self.global_defs.extend(defs); |
| 336 | self |
| 337 | } |
| 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 { |