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 = [] 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 hal.addf('motion-controller', 'servo-thread') base.gantry_write(gantryAxis=1, thread='servo-thread') base.gantry_write(gantryAxis=2, thread='servo-thread') hardware.hardware_write() # Storage storage.read_storage() # start haltalk server after everything is initialized # else binding the remote components on the UI might fail hal.loadusr('haltalk', wait=True)
base.setup_stepper_multiplexer(stepgenIndex=4, sections=multiplexSections, selSignal='extruder-sel', thread='servo-thread') # LEDs for i in range(0, numLights): base.setup_light('l%i' % i, thread='servo-thread') # HB LED hardware.setup_hbp_led(thread='servo-thread') # Standard I/O - EStop, Enables, Limit Switches, Etc #errorSignals = ['gpio-hw-error', 'pwm-hw-error', '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_estop_loopback() base.setup_tool_loopback() # Probe base.setup_probe(thread='servo-thread') hal.addf('motion-controller', 'servo-thread') base.gantry_write(gantryAxis=2, thread='servo-thread') # Storage storage.read_storage() # start haltalk server after everything is initialized # else binding the remote components on the UI might fail hal.loadusr('haltalk', wait=True)