# Temperature Signals if hasHbp: base.create_temperature_control(name='hbp', section='HBP', hardwareOkSignal='temp-hw-ok', thread='servo-thread') for i in range(0, numExtruders): hardware.setup_exp('exp%i' % i) base.create_temperature_control(name='e%i' % i, section='EXTRUDER_%i' % i, coolingFan='f%i' % i, hotendFan='exp%i' % i, hardwareOkSignal='temp-hw-ok', thread='servo-thread') # LEDs for i in range(0, numLights): base.setup_light('l%i' % i, thread='servo-thread') # Standard I/O - EStop, Enables, Limit Switches, Etc errorSignals = ['temp-hw-error', 'watchdog-error', 'hbp-error'] for i in range(0, numExtruders): errorSignals.append('e%i-error' % i) base.setup_estop(errorSignals, thread='servo-thread') base.setup_tool_loopback() # Probe base.setup_probe(thread='servo-thread') # Setup Hardware hardware.setup_hardware(thread='servo-thread') # write out functions hardware.hardware_write()
base.create_temperature_control(name='hbp', section='HBP', hardwareOkSignal='temp-hw-ok', thread='servo-thread') for i in range(0, numExtruders): hardware.setup_exp('exp%i' % i) base.create_temperature_control(name='e%i' % i, section='EXTRUDER_%i' % i, coolingFan='f%i' % i, hotendFan='exp%i' % i, hardwareOkSignal='temp-hw-ok', thread='servo-thread') # LEDs for i in range(0, numLights): base.setup_light('l%i' % i, thread='servo-thread') # Standard I/O - EStop, Enables, Limit Switches, Etc errorSignals = ['temp-hw-error', 'watchdog-error', 'hbp-error'] for i in range(0, numExtruders): errorSignals.append('e%i-error' % i) base.setup_estop(errorSignals, thread='servo-thread') base.setup_tool_loopback() # Probe base.setup_probe(thread='servo-thread') # Setup Hardware hardware.setup_hardware(thread='servo-thread') # write out functions hardware.hardware_write()