self.config = config
self.port = None
c = self.config # reduce verbosity
+ dummy_write = lambda value: None
super(Stepper, self).__init__(
- write=self.port.write_bitfield, full_step=c['full-step'],
- logic=c['logic'], delay=c['delay'], step_size=c['step-size'],
- backlash=c['backlash'])
+ write=dummy_write, full_step=c['full-step'], logic=c['logic'],
+ delay=c['delay'], step_size=c['step-size'], backlash=c['backlash'])
def load_from_config(self, devices):
c = self.config # reduce verbosity
if self.port is None:
self.port = _DigitalPort(config=c['port'])
self.port.load_from_config(devices=devices)
- self._write = self.port.write_bitfield
+ self._write = self.port.write_bitfield
self.full_step = c['full-step']
self.logic = c['logic']
self.delay = c['delay']