Example #1
0
for i in range(0, numExtruders):
    multiplexSections.append('EXTRUDER_%i' % i)
base.setup_stepper_multiplexer(stepgenIndex=4, sections=multiplexSections,
                               selSignal='extruder-sel', thread='servo-thread')

# Fans
for i in range(0, numFans):
    base.setup_fan('f%i' % i, thread='servo-thread')

# 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')
Example #2
0
                               sections=multiplexSections,
                               selSignal='extruder-sel',
                               thread='servo-thread')

# Fans
for i in range(0, numFans):
    base.setup_fan('f%i' % i, thread='servo-thread')

# 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)