===== Config file ===== [virtual_sdcard] path = ~/printer_data/gcodes on_error_gcode = CANCEL_PRINT [pause_resume] [display_status] [gcode_macro CANCEL_PRINT] description = Cancel the actual running print rename_existing = CANCEL_PRINT_BASE variable_park = True gcode = {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%} PAUSE {% endif %} TURN_OFF_HEATERS M106 S0 CANCEL_PRINT_BASE [gcode_macro PAUSE] description = Pause the actual running print rename_existing = PAUSE_BASE gcode = {% if printer.virtual_sdcard.is_active == True %} {% if printer.pause_resume.is_paused == False %} PAUSE_BASE _TOOLHEAD_PARK_PAUSE_CANCEL {% endif %} {% endif %} [gcode_macro RESUME] description = Resume the actual running print rename_existing = RESUME_BASE gcode = {% if printer.pause_resume.is_paused %} {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude_extrude %} {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E{extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} {% endif %} [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] description = Helper: park toolhead used in PAUSE and CANCEL_PRINT variable_retract_extrude = 10.0 variable_extrude_extrude = 11.0 gcode = {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} {% set z_park_delta = 2.0 %} {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - z_park_delta) %} {% set z_safe = z_park_delta %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E-{retract_extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} {% else %} {action_respond_info("Printer not homed")} {% endif %} [stepper_x] step_pin = PE2 dir_pin = !PB4 enable_pin = !PC11 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF3 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_y] step_pin = PF12 dir_pin = !PF11 enable_pin = !PB3 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF4 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_z] step_pin = PD7 dir_pin = !PD6 enable_pin = !PF10 microsteps = 16 rotation_distance = 4 endstop_pin = probe:z_virtual_endstop position_min = -5 position_max = 400 homing_speed = 10 second_homing_speed = 3 homing_retract_dist = 8 [stepper_z1] step_pin = PD3 dir_pin = !PD2 enable_pin = !PD5 microsteps = 16 rotation_distance = 4 [extruder] step_pin = PC9 dir_pin = !PC8 enable_pin = !PD1 microsteps = 16 rotation_distance = 33.683 nozzle_diameter = 0.4 filament_diameter = 1.75 pressure_advance = 0.617 pressure_advance_smooth_time = 0.010 heater_pin = PE3 sensor_pin = PA1 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 22.2 pid_ki = 1.08 pid_kd = 114 min_temp = 0 max_temp = 260 [bltouch] sensor_pin = PB2 control_pin = PB1 x_offset = -45 y_offset = 0 z_offset = 2.60 speed = 3.0 pin_up_touch_mode_reports_triggered = False [safe_z_home] home_xy_position = 180, 180 speed = 100 z_hop = 10 z_hop_speed = 5 [bed_mesh] speed = 100 horizontal_move_z = 8 mesh_min = 50, 50 mesh_max = 300, 300 probe_count = 3, 3 [filament_switch_sensor material_0] switch_pin = PC1 [heater_bed] heater_pin = PB6 sensor_pin = PA0 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 690.34 pid_ki = 111.47 pid_kd = 1068.83 min_temp = 0 max_temp = 130 [fan] pin = PE6 [heater_fan fan1] pin = PE0 [mcu] serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290019000F504B4633373520-if00 [printer] kinematics = cartesian max_velocity = 300 max_accel = 2500 max_z_velocity = 5 max_z_accel = 100 [screws_tilt_adjust] screw1 = 60,40 screw1_name = front_left screw2 = 325,40 screw2_name = front_right screw3 = 60,315 screw3_name = back_left screw4 = 325,315 screw4_name = back_right speed = 50 horizontal_move_z = 5 screw_thread = CW-M3 [z_tilt] z_positions = -22, 180 394, 180 points = 50, 180 350, 180 speed = 50 horizontal_move_z = 5 retries = 3 retry_tolerance = 0.01 [tmc2209 stepper_x] uart_pin = PC10 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_y] uart_pin = PF13 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_z] uart_pin = PF9 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 stepper_z1] uart_pin = PD4 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 extruder] uart_pin = PD0 run_current = 0.800 stealthchop_threshold = 999999 [board_pins] aliases = EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, EXP1_7=PE15, EXP1_8=PB10, EXP1_9=, EXP1_10=<5V>, EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, EXP2_7=PE8, EXP2_8=, EXP2_9=, EXP2_10= [display] lcd_type = uc1701 cs_pin = EXP1_3 a0_pin = EXP1_4 rst_pin = EXP1_5 encoder_pins = ^EXP2_5, ^EXP2_3 click_pin = ^!EXP1_2 contrast = 63 spi_software_miso_pin = EXP2_1 spi_software_mosi_pin = EXP2_6 spi_software_sclk_pin = EXP2_2 [neopixel btt_mini12864] pin = EXP1_6 chain_count = 3 color_order = RGB initial_red = 0.4 initial_green = 0.4 initial_blue = 0.4 [delayed_gcode setdisplayneopixel] initial_duration = 1 gcode = {% set svv = printer.save_variables.variables %} {% set colour = svv.colour %} {% if colour == 1 %} green_light {% elif colour == 2 %} red_light {% elif colour == 3 %} blue_light {% elif colour == 4 %} orange_light {% elif colour == 5 %} yellow_light {% elif colour == 6 %} purple_light {% endif %} [menu __main __lights] type = list name = lights [menu __main __lights __green] type = command name = green gcode = SAVE_VARIABLE VARIABLE=colour VALUE={1} green_light [menu __main __lights __red] type = command name = red gcode = SAVE_VARIABLE VARIABLE=colour VALUE={2} red_light [menu __main __lights __blue] type = command name = blue gcode = SAVE_VARIABLE VARIABLE=colour VALUE={3} blue_light [menu __main __lights __orange] type = command name = orange gcode = SAVE_VARIABLE VARIABLE=colour VALUE={4} orange_light [menu __main __lights __yellow] type = command name = yellow gcode = SAVE_VARIABLE VARIABLE=colour VALUE={5} yellow_light [menu __main __lights __purple] type = command name = purple gcode = SAVE_VARIABLE VARIABLE=colour VALUE={6} purple_light [gcode_macro green_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 [gcode_macro red_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 [gcode_macro blue_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 [gcode_macro orange_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=3 [gcode_macro yellow_light] gcode = SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=3 [gcode_macro purple_light] gcode = SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=3 [gcode_macro print_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 [save_variables] filename = ~/variables.cfg [output_pin beeper] pin = EXP1_1 ======================= Loaded MCU 'mcu' 105 commands (v0.10.0-623-g5b1a6676 / gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2) MCU 'mcu' config: ADC_MAX=4095 BUS_PINS_i2c1_PA9_PA10=PA9,PA10 BUS_PINS_i2c1_PB6_PB7=PB6,PB7 BUS_PINS_i2c1_PB8_PB9=PB8,PB9 BUS_PINS_i2c2_PB10_PB11=PB10,PB11 BUS_PINS_i2c2_PB13_PB14=PB13,PB14 BUS_PINS_i2c3_PB3_PB4=PB3,PB4 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3=PB4,PB5,PB3 CLOCK_FREQ=64000000 MCU=stm32g0b1xx PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PF0,PF1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1 Configured MCU 'mcu' (1024 moves) Args: ['/home/biqu/klipper/klippy/klippy.py', '/home/biqu/printer_data/config/printer.cfg', '-I', '/home/biqu/printer_data/comms/klippy.serial', '-l', '/home/biqu/printer_data/logs/klippy.log', '-a', '/home/biqu/printer_data/comms/klippy.sock'] Git version: 'v0.11.0-110-gaca0c71a' CPU: 4 core ? Python: '3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]' webhooks client 281473416234560: {'program': 'Moonraker', 'version': 'v0.7.1-882-g0a811b9'} =============== Log rollover at Mon Feb 27 00:28:24 2023 =============== Stats 10354.2: gcodein=0 mcu: mcu_awake=0.003 mcu_task_avg=0.000015 mcu_task_stddev=0.000010 bytes_write=84322 bytes_read=1229735 bytes_retransmit=9 bytes_invalid=0 send_seq=11297 receive_seq=11297 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 stalled_bytes=0 freq=64001468 heater_bed: target=0 temp=21.0 pwm=0.000 sysload=0.11 cputime=328.487 memavail=689656 print_time=10358.801 buffer_time=0.948 print_stall=0 extruder: target=0 temp=20.9 pwm=0.000 Stats 10355.2: gcodein=0 mcu: mcu_awake=0.003 mcu_task_avg=0.000015 mcu_task_stddev=0.000010 bytes_write=84742 bytes_read=1229881 bytes_retransmit=9 bytes_invalid=0 send_seq=11306 receive_seq=11306 retransmit_seq=2 srtt=0.001 rttvar=0.000 rto=0.025 ready_bytes=0 stalled_bytes=0 freq=64001469 heater_bed: target=0 temp=21.0 pwm=0.000 sysload=0.11 cputime=328.540 memavail=689732 print_time=10358.801 buffer_time=0.000 print_stall=0 extruder: target=0 temp=20.8 pwm=0.000 Attempting MCU 'mcu' reset command webhooks client 281473416234560: Disconnected Restarting printer Start printer at Mon Feb 27 00:28:26 2023 (1677457706.8 10356.3) ===== Config file ===== [virtual_sdcard] path = ~/printer_data/gcodes on_error_gcode = CANCEL_PRINT [pause_resume] [display_status] [gcode_macro CANCEL_PRINT] description = Cancel the actual running print rename_existing = CANCEL_PRINT_BASE variable_park = True gcode = {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%} PAUSE {% endif %} TURN_OFF_HEATERS M106 S0 CANCEL_PRINT_BASE [gcode_macro PAUSE] description = Pause the actual running print rename_existing = PAUSE_BASE gcode = {% if printer.virtual_sdcard.is_active == True %} {% if printer.pause_resume.is_paused == False %} PAUSE_BASE _TOOLHEAD_PARK_PAUSE_CANCEL {% endif %} {% endif %} [gcode_macro RESUME] description = Resume the actual running print rename_existing = RESUME_BASE gcode = {% if printer.pause_resume.is_paused %} {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude_extrude %} {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E{extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} {% endif %} [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] description = Helper: park toolhead used in PAUSE and CANCEL_PRINT variable_retract_extrude = 10.0 variable_extrude_extrude = 11.0 gcode = {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} {% set z_park_delta = 2.0 %} {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - z_park_delta) %} {% set z_safe = z_park_delta %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E-{retract_extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} {% else %} {action_respond_info("Printer not homed")} {% endif %} [stepper_x] step_pin = PE2 dir_pin = !PB4 enable_pin = !PC11 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF3 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_y] step_pin = PF12 dir_pin = !PF11 enable_pin = !PB3 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF4 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_z] step_pin = PD7 dir_pin = !PD6 enable_pin = !PF10 microsteps = 16 rotation_distance = 4 endstop_pin = probe:z_virtual_endstop position_min = -5 position_max = 400 homing_speed = 10 second_homing_speed = 3 homing_retract_dist = 8 [stepper_z1] step_pin = PD3 dir_pin = !PD2 enable_pin = !PD5 microsteps = 16 rotation_distance = 4 [extruder] step_pin = PC9 dir_pin = !PC8 enable_pin = !PD1 microsteps = 16 rotation_distance = 33.683 nozzle_diameter = 0.4 filament_diameter = 1.75 pressure_advance = 0.617 pressure_advance_smooth_time = 0.010 heater_pin = PE3 sensor_pin = PA1 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 22.2 pid_ki = 1.08 pid_kd = 114 min_temp = 0 max_temp = 260 [bltouch] sensor_pin = PB2 control_pin = PB1 x_offset = -45 y_offset = 0 z_offset = 2.60 speed = 3.0 pin_up_touch_mode_reports_triggered = False [safe_z_home] home_xy_position = 180, 180 speed = 100 z_hop = 10 z_hop_speed = 5 [bed_mesh] speed = 100 horizontal_move_z = 8 mesh_min = 50, 50 mesh_max = 300, 300 probe_count = 3, 3 [filament_switch_sensor material_0] switch_pin = PC1 [heater_bed] heater_pin = PB6 sensor_pin = PA0 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 690.34 pid_ki = 111.47 pid_kd = 1068.83 min_temp = 0 max_temp = 130 [fan] pin = PE6 [heater_fan fan1] pin = PE0 [heater_fan SoC_fan] pin = RPI:gpio26 [mcu] serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290019000F504B4633373520-if00 [printer] kinematics = cartesian max_velocity = 300 max_accel = 2500 max_z_velocity = 5 max_z_accel = 100 [screws_tilt_adjust] screw1 = 60,40 screw1_name = front_left screw2 = 325,40 screw2_name = front_right screw3 = 60,315 screw3_name = back_left screw4 = 325,315 screw4_name = back_right speed = 50 horizontal_move_z = 5 screw_thread = CW-M3 [z_tilt] z_positions = -22, 180 394, 180 points = 50, 180 350, 180 speed = 50 horizontal_move_z = 5 retries = 3 retry_tolerance = 0.01 [tmc2209 stepper_x] uart_pin = PC10 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_y] uart_pin = PF13 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_z] uart_pin = PF9 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 stepper_z1] uart_pin = PD4 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 extruder] uart_pin = PD0 run_current = 0.800 stealthchop_threshold = 999999 [board_pins] aliases = EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, EXP1_7=PE15, EXP1_8=PB10, EXP1_9=, EXP1_10=<5V>, EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, EXP2_7=PE8, EXP2_8=, EXP2_9=, EXP2_10= [display] lcd_type = uc1701 cs_pin = EXP1_3 a0_pin = EXP1_4 rst_pin = EXP1_5 encoder_pins = ^EXP2_5, ^EXP2_3 click_pin = ^!EXP1_2 contrast = 63 spi_software_miso_pin = EXP2_1 spi_software_mosi_pin = EXP2_6 spi_software_sclk_pin = EXP2_2 [neopixel btt_mini12864] pin = EXP1_6 chain_count = 3 color_order = RGB initial_red = 0.4 initial_green = 0.4 initial_blue = 0.4 [delayed_gcode setdisplayneopixel] initial_duration = 1 gcode = {% set svv = printer.save_variables.variables %} {% set colour = svv.colour %} {% if colour == 1 %} green_light {% elif colour == 2 %} red_light {% elif colour == 3 %} blue_light {% elif colour == 4 %} orange_light {% elif colour == 5 %} yellow_light {% elif colour == 6 %} purple_light {% endif %} [menu __main __lights] type = list name = lights [menu __main __lights __green] type = command name = green gcode = SAVE_VARIABLE VARIABLE=colour VALUE={1} green_light [menu __main __lights __red] type = command name = red gcode = SAVE_VARIABLE VARIABLE=colour VALUE={2} red_light [menu __main __lights __blue] type = command name = blue gcode = SAVE_VARIABLE VARIABLE=colour VALUE={3} blue_light [menu __main __lights __orange] type = command name = orange gcode = SAVE_VARIABLE VARIABLE=colour VALUE={4} orange_light [menu __main __lights __yellow] type = command name = yellow gcode = SAVE_VARIABLE VARIABLE=colour VALUE={5} yellow_light [menu __main __lights __purple] type = command name = purple gcode = SAVE_VARIABLE VARIABLE=colour VALUE={6} purple_light [gcode_macro green_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 [gcode_macro red_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 [gcode_macro blue_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 [gcode_macro orange_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=3 [gcode_macro yellow_light] gcode = SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=3 [gcode_macro purple_light] gcode = SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=3 [gcode_macro print_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 [save_variables] filename = ~/variables.cfg [output_pin beeper] pin = EXP1_1 ======================= Config error Traceback (most recent call last): File "/home/biqu/klipper/klippy/klippy.py", line 175, in _connect self._read_config() File "/home/biqu/klipper/klippy/klippy.py", line 141, in _read_config self.load_object(config, section_config.get_name(), None) File "/home/biqu/klipper/klippy/klippy.py", line 130, in load_object self.objects[section] = init_func(config.getsection(section)) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 42, in load_config_prefix return PrinterHeaterFan(config) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 18, in __init__ self.fan = fan.Fan(config, default_shutdown_speed=1.) File "/home/biqu/klipper/klippy/extras/fan.py", line 27, in __init__ self.mcu_fan = ppins.setup_pin('pwm', config.get('pin')) File "/home/biqu/klipper/klippy/pins.py", line 117, in setup_pin pin_params = self.lookup_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 98, in lookup_pin pin_params = self.parse_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 83, in parse_pin raise error("Unknown pin chip name '%s'" % (chip_name,)) pins.error: Unknown pin chip name 'RPI' webhooks client 281473416379792: New connection webhooks client 281473416379792: Client info {'program': 'Moonraker', 'version': 'v0.7.1-882-g0a811b9'} Attempting MCU 'mcu' reset webhooks client 281473416379792: Disconnected Restarting printer Start printer at Mon Feb 27 00:28:54 2023 (1677457734.2 10383.8) ===== Config file ===== [virtual_sdcard] path = ~/printer_data/gcodes on_error_gcode = CANCEL_PRINT [pause_resume] [display_status] [gcode_macro CANCEL_PRINT] description = Cancel the actual running print rename_existing = CANCEL_PRINT_BASE variable_park = True gcode = {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%} PAUSE {% endif %} TURN_OFF_HEATERS M106 S0 CANCEL_PRINT_BASE [gcode_macro PAUSE] description = Pause the actual running print rename_existing = PAUSE_BASE gcode = {% if printer.virtual_sdcard.is_active == True %} {% if printer.pause_resume.is_paused == False %} PAUSE_BASE _TOOLHEAD_PARK_PAUSE_CANCEL {% endif %} {% endif %} [gcode_macro RESUME] description = Resume the actual running print rename_existing = RESUME_BASE gcode = {% if printer.pause_resume.is_paused %} {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude_extrude %} {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E{extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} {% endif %} [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] description = Helper: park toolhead used in PAUSE and CANCEL_PRINT variable_retract_extrude = 10.0 variable_extrude_extrude = 11.0 gcode = {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} {% set z_park_delta = 2.0 %} {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - z_park_delta) %} {% set z_safe = z_park_delta %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E-{retract_extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} {% else %} {action_respond_info("Printer not homed")} {% endif %} [stepper_x] step_pin = PE2 dir_pin = !PB4 enable_pin = !PC11 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF3 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_y] step_pin = PF12 dir_pin = !PF11 enable_pin = !PB3 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF4 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_z] step_pin = PD7 dir_pin = !PD6 enable_pin = !PF10 microsteps = 16 rotation_distance = 4 endstop_pin = probe:z_virtual_endstop position_min = -5 position_max = 400 homing_speed = 10 second_homing_speed = 3 homing_retract_dist = 8 [stepper_z1] step_pin = PD3 dir_pin = !PD2 enable_pin = !PD5 microsteps = 16 rotation_distance = 4 [extruder] step_pin = PC9 dir_pin = !PC8 enable_pin = !PD1 microsteps = 16 rotation_distance = 33.683 nozzle_diameter = 0.4 filament_diameter = 1.75 pressure_advance = 0.617 pressure_advance_smooth_time = 0.010 heater_pin = PE3 sensor_pin = PA1 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 22.2 pid_ki = 1.08 pid_kd = 114 min_temp = 0 max_temp = 260 [bltouch] sensor_pin = PB2 control_pin = PB1 x_offset = -45 y_offset = 0 z_offset = 2.60 speed = 3.0 pin_up_touch_mode_reports_triggered = False [safe_z_home] home_xy_position = 180, 180 speed = 100 z_hop = 10 z_hop_speed = 5 [bed_mesh] speed = 100 horizontal_move_z = 8 mesh_min = 50, 50 mesh_max = 300, 300 probe_count = 3, 3 [filament_switch_sensor material_0] switch_pin = PC1 [heater_bed] heater_pin = PB6 sensor_pin = PA0 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 690.34 pid_ki = 111.47 pid_kd = 1068.83 min_temp = 0 max_temp = 130 [fan] pin = PE6 [heater_fan fan1] pin = PE0 [heater_fan SoC_fan] pin = CB1:gpio79 [mcu] serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290019000F504B4633373520-if00 [printer] kinematics = cartesian max_velocity = 300 max_accel = 2500 max_z_velocity = 5 max_z_accel = 100 [screws_tilt_adjust] screw1 = 60,40 screw1_name = front_left screw2 = 325,40 screw2_name = front_right screw3 = 60,315 screw3_name = back_left screw4 = 325,315 screw4_name = back_right speed = 50 horizontal_move_z = 5 screw_thread = CW-M3 [z_tilt] z_positions = -22, 180 394, 180 points = 50, 180 350, 180 speed = 50 horizontal_move_z = 5 retries = 3 retry_tolerance = 0.01 [tmc2209 stepper_x] uart_pin = PC10 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_y] uart_pin = PF13 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_z] uart_pin = PF9 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 stepper_z1] uart_pin = PD4 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 extruder] uart_pin = PD0 run_current = 0.800 stealthchop_threshold = 999999 [board_pins] aliases = EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, EXP1_7=PE15, EXP1_8=PB10, EXP1_9=, EXP1_10=<5V>, EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, EXP2_7=PE8, EXP2_8=, EXP2_9=, EXP2_10= [display] lcd_type = uc1701 cs_pin = EXP1_3 a0_pin = EXP1_4 rst_pin = EXP1_5 encoder_pins = ^EXP2_5, ^EXP2_3 click_pin = ^!EXP1_2 contrast = 63 spi_software_miso_pin = EXP2_1 spi_software_mosi_pin = EXP2_6 spi_software_sclk_pin = EXP2_2 [neopixel btt_mini12864] pin = EXP1_6 chain_count = 3 color_order = RGB initial_red = 0.4 initial_green = 0.4 initial_blue = 0.4 [delayed_gcode setdisplayneopixel] initial_duration = 1 gcode = {% set svv = printer.save_variables.variables %} {% set colour = svv.colour %} {% if colour == 1 %} green_light {% elif colour == 2 %} red_light {% elif colour == 3 %} blue_light {% elif colour == 4 %} orange_light {% elif colour == 5 %} yellow_light {% elif colour == 6 %} purple_light {% endif %} [menu __main __lights] type = list name = lights [menu __main __lights __green] type = command name = green gcode = SAVE_VARIABLE VARIABLE=colour VALUE={1} green_light [menu __main __lights __red] type = command name = red gcode = SAVE_VARIABLE VARIABLE=colour VALUE={2} red_light [menu __main __lights __blue] type = command name = blue gcode = SAVE_VARIABLE VARIABLE=colour VALUE={3} blue_light [menu __main __lights __orange] type = command name = orange gcode = SAVE_VARIABLE VARIABLE=colour VALUE={4} orange_light [menu __main __lights __yellow] type = command name = yellow gcode = SAVE_VARIABLE VARIABLE=colour VALUE={5} yellow_light [menu __main __lights __purple] type = command name = purple gcode = SAVE_VARIABLE VARIABLE=colour VALUE={6} purple_light [gcode_macro green_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 [gcode_macro red_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 [gcode_macro blue_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 [gcode_macro orange_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=3 [gcode_macro yellow_light] gcode = SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=3 [gcode_macro purple_light] gcode = SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=3 [gcode_macro print_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 [save_variables] filename = ~/variables.cfg [output_pin beeper] pin = EXP1_1 ======================= Config error Traceback (most recent call last): File "/home/biqu/klipper/klippy/klippy.py", line 175, in _connect self._read_config() File "/home/biqu/klipper/klippy/klippy.py", line 141, in _read_config self.load_object(config, section_config.get_name(), None) File "/home/biqu/klipper/klippy/klippy.py", line 130, in load_object self.objects[section] = init_func(config.getsection(section)) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 42, in load_config_prefix return PrinterHeaterFan(config) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 18, in __init__ self.fan = fan.Fan(config, default_shutdown_speed=1.) File "/home/biqu/klipper/klippy/extras/fan.py", line 27, in __init__ self.mcu_fan = ppins.setup_pin('pwm', config.get('pin')) File "/home/biqu/klipper/klippy/pins.py", line 117, in setup_pin pin_params = self.lookup_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 98, in lookup_pin pin_params = self.parse_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 83, in parse_pin raise error("Unknown pin chip name '%s'" % (chip_name,)) pins.error: Unknown pin chip name 'CB1' webhooks client 281473416934400: New connection webhooks client 281473416934400: Client info {'program': 'Moonraker', 'version': 'v0.7.1-882-g0a811b9'} Attempting MCU 'mcu' reset webhooks client 281473416934400: Disconnected Restarting printer Start printer at Mon Feb 27 00:29:41 2023 (1677457781.1 10430.7) ===== Config file ===== [virtual_sdcard] path = ~/printer_data/gcodes on_error_gcode = CANCEL_PRINT [pause_resume] [display_status] [gcode_macro CANCEL_PRINT] description = Cancel the actual running print rename_existing = CANCEL_PRINT_BASE variable_park = True gcode = {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%} PAUSE {% endif %} TURN_OFF_HEATERS M106 S0 CANCEL_PRINT_BASE [gcode_macro PAUSE] description = Pause the actual running print rename_existing = PAUSE_BASE gcode = {% if printer.virtual_sdcard.is_active == True %} {% if printer.pause_resume.is_paused == False %} PAUSE_BASE _TOOLHEAD_PARK_PAUSE_CANCEL {% endif %} {% endif %} [gcode_macro RESUME] description = Resume the actual running print rename_existing = RESUME_BASE gcode = {% if printer.pause_resume.is_paused %} {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude_extrude %} {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E{extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} {% endif %} [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] description = Helper: park toolhead used in PAUSE and CANCEL_PRINT variable_retract_extrude = 10.0 variable_extrude_extrude = 11.0 gcode = {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} {% set z_park_delta = 2.0 %} {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - z_park_delta) %} {% set z_safe = z_park_delta %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E-{retract_extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} {% else %} {action_respond_info("Printer not homed")} {% endif %} [stepper_x] step_pin = PE2 dir_pin = !PB4 enable_pin = !PC11 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF3 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_y] step_pin = PF12 dir_pin = !PF11 enable_pin = !PB3 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF4 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_z] step_pin = PD7 dir_pin = !PD6 enable_pin = !PF10 microsteps = 16 rotation_distance = 4 endstop_pin = probe:z_virtual_endstop position_min = -5 position_max = 400 homing_speed = 10 second_homing_speed = 3 homing_retract_dist = 8 [stepper_z1] step_pin = PD3 dir_pin = !PD2 enable_pin = !PD5 microsteps = 16 rotation_distance = 4 [extruder] step_pin = PC9 dir_pin = !PC8 enable_pin = !PD1 microsteps = 16 rotation_distance = 33.683 nozzle_diameter = 0.4 filament_diameter = 1.75 pressure_advance = 0.617 pressure_advance_smooth_time = 0.010 heater_pin = PE3 sensor_pin = PA1 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 22.2 pid_ki = 1.08 pid_kd = 114 min_temp = 0 max_temp = 260 [bltouch] sensor_pin = PB2 control_pin = PB1 x_offset = -45 y_offset = 0 z_offset = 2.60 speed = 3.0 pin_up_touch_mode_reports_triggered = False [safe_z_home] home_xy_position = 180, 180 speed = 100 z_hop = 10 z_hop_speed = 5 [bed_mesh] speed = 100 horizontal_move_z = 8 mesh_min = 50, 50 mesh_max = 300, 300 probe_count = 3, 3 [filament_switch_sensor material_0] switch_pin = PC1 [heater_bed] heater_pin = PB6 sensor_pin = PA0 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 690.34 pid_ki = 111.47 pid_kd = 1068.83 min_temp = 0 max_temp = 130 [fan] pin = PE6 [heater_fan fan1] pin = PE0 [heater_fan SoC_fan] [mcu] serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290019000F504B4633373520-if00 [printer] kinematics = cartesian max_velocity = 300 max_accel = 2500 max_z_velocity = 5 max_z_accel = 100 [screws_tilt_adjust] screw1 = 60,40 screw1_name = front_left screw2 = 325,40 screw2_name = front_right screw3 = 60,315 screw3_name = back_left screw4 = 325,315 screw4_name = back_right speed = 50 horizontal_move_z = 5 screw_thread = CW-M3 [z_tilt] z_positions = -22, 180 394, 180 points = 50, 180 350, 180 speed = 50 horizontal_move_z = 5 retries = 3 retry_tolerance = 0.01 [tmc2209 stepper_x] uart_pin = PC10 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_y] uart_pin = PF13 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_z] uart_pin = PF9 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 stepper_z1] uart_pin = PD4 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 extruder] uart_pin = PD0 run_current = 0.800 stealthchop_threshold = 999999 [board_pins] aliases = EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, EXP1_7=PE15, EXP1_8=PB10, EXP1_9=, EXP1_10=<5V>, EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, EXP2_7=PE8, EXP2_8=, EXP2_9=, EXP2_10= [display] lcd_type = uc1701 cs_pin = EXP1_3 a0_pin = EXP1_4 rst_pin = EXP1_5 encoder_pins = ^EXP2_5, ^EXP2_3 click_pin = ^!EXP1_2 contrast = 63 spi_software_miso_pin = EXP2_1 spi_software_mosi_pin = EXP2_6 spi_software_sclk_pin = EXP2_2 [neopixel btt_mini12864] pin = EXP1_6 chain_count = 3 color_order = RGB initial_red = 0.4 initial_green = 0.4 initial_blue = 0.4 [delayed_gcode setdisplayneopixel] initial_duration = 1 gcode = {% set svv = printer.save_variables.variables %} {% set colour = svv.colour %} {% if colour == 1 %} green_light {% elif colour == 2 %} red_light {% elif colour == 3 %} blue_light {% elif colour == 4 %} orange_light {% elif colour == 5 %} yellow_light {% elif colour == 6 %} purple_light {% endif %} [menu __main __lights] type = list name = lights [menu __main __lights __green] type = command name = green gcode = SAVE_VARIABLE VARIABLE=colour VALUE={1} green_light [menu __main __lights __red] type = command name = red gcode = SAVE_VARIABLE VARIABLE=colour VALUE={2} red_light [menu __main __lights __blue] type = command name = blue gcode = SAVE_VARIABLE VARIABLE=colour VALUE={3} blue_light [menu __main __lights __orange] type = command name = orange gcode = SAVE_VARIABLE VARIABLE=colour VALUE={4} orange_light [menu __main __lights __yellow] type = command name = yellow gcode = SAVE_VARIABLE VARIABLE=colour VALUE={5} yellow_light [menu __main __lights __purple] type = command name = purple gcode = SAVE_VARIABLE VARIABLE=colour VALUE={6} purple_light [gcode_macro green_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 [gcode_macro red_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 [gcode_macro blue_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 [gcode_macro orange_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=3 [gcode_macro yellow_light] gcode = SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=3 [gcode_macro purple_light] gcode = SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=3 [gcode_macro print_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 [save_variables] filename = ~/variables.cfg [output_pin beeper] pin = EXP1_1 ======================= Config error Traceback (most recent call last): File "/home/biqu/klipper/klippy/klippy.py", line 175, in _connect self._read_config() File "/home/biqu/klipper/klippy/klippy.py", line 141, in _read_config self.load_object(config, section_config.get_name(), None) File "/home/biqu/klipper/klippy/klippy.py", line 130, in load_object self.objects[section] = init_func(config.getsection(section)) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 42, in load_config_prefix return PrinterHeaterFan(config) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 18, in __init__ self.fan = fan.Fan(config, default_shutdown_speed=1.) File "/home/biqu/klipper/klippy/extras/fan.py", line 27, in __init__ self.mcu_fan = ppins.setup_pin('pwm', config.get('pin')) File "/home/biqu/klipper/klippy/configfile.py", line 57, in get return self._get_wrapper(self.fileconfig.get, option, default, File "/home/biqu/klipper/klippy/configfile.py", line 32, in _get_wrapper raise error("Option '%s' in section '%s' must be specified" configparser.Error: Option 'pin' in section 'heater_fan SoC_fan' must be specified webhooks client 281473418323760: New connection webhooks client 281473418323760: Client info {'program': 'Moonraker', 'version': 'v0.7.1-882-g0a811b9'} Attempting MCU 'mcu' reset webhooks client 281473418323760: Disconnected Restarting printer Start printer at Mon Feb 27 00:30:20 2023 (1677457820.5 10470.0) ===== Config file ===== [virtual_sdcard] path = ~/printer_data/gcodes on_error_gcode = CANCEL_PRINT [pause_resume] [display_status] [gcode_macro CANCEL_PRINT] description = Cancel the actual running print rename_existing = CANCEL_PRINT_BASE variable_park = True gcode = {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%} PAUSE {% endif %} TURN_OFF_HEATERS M106 S0 CANCEL_PRINT_BASE [gcode_macro PAUSE] description = Pause the actual running print rename_existing = PAUSE_BASE gcode = {% if printer.virtual_sdcard.is_active == True %} {% if printer.pause_resume.is_paused == False %} PAUSE_BASE _TOOLHEAD_PARK_PAUSE_CANCEL {% endif %} {% endif %} [gcode_macro RESUME] description = Resume the actual running print rename_existing = RESUME_BASE gcode = {% if printer.pause_resume.is_paused %} {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude_extrude %} {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E{extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} {% endif %} [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] description = Helper: park toolhead used in PAUSE and CANCEL_PRINT variable_retract_extrude = 10.0 variable_extrude_extrude = 11.0 gcode = {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} {% set z_park_delta = 2.0 %} {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - z_park_delta) %} {% set z_safe = z_park_delta %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E-{retract_extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} {% else %} {action_respond_info("Printer not homed")} {% endif %} [stepper_x] step_pin = PE2 dir_pin = !PB4 enable_pin = !PC11 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF3 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_y] step_pin = PF12 dir_pin = !PF11 enable_pin = !PB3 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF4 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_z] step_pin = PD7 dir_pin = !PD6 enable_pin = !PF10 microsteps = 16 rotation_distance = 4 endstop_pin = probe:z_virtual_endstop position_min = -5 position_max = 400 homing_speed = 10 second_homing_speed = 3 homing_retract_dist = 8 [stepper_z1] step_pin = PD3 dir_pin = !PD2 enable_pin = !PD5 microsteps = 16 rotation_distance = 4 [extruder] step_pin = PC9 dir_pin = !PC8 enable_pin = !PD1 microsteps = 16 rotation_distance = 33.683 nozzle_diameter = 0.4 filament_diameter = 1.75 pressure_advance = 0.617 pressure_advance_smooth_time = 0.010 heater_pin = PE3 sensor_pin = PA1 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 22.2 pid_ki = 1.08 pid_kd = 114 min_temp = 0 max_temp = 260 [bltouch] sensor_pin = PB2 control_pin = PB1 x_offset = -45 y_offset = 0 z_offset = 2.60 speed = 3.0 pin_up_touch_mode_reports_triggered = False [safe_z_home] home_xy_position = 180, 180 speed = 100 z_hop = 10 z_hop_speed = 5 [bed_mesh] speed = 100 horizontal_move_z = 8 mesh_min = 50, 50 mesh_max = 300, 300 probe_count = 3, 3 [filament_switch_sensor material_0] switch_pin = PC1 [heater_bed] heater_pin = PB6 sensor_pin = PA0 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 690.34 pid_ki = 111.47 pid_kd = 1068.83 min_temp = 0 max_temp = 130 [fan] pin = PE6 [heater_fan fan1] pin = PE0 [heater_fan SoC_fan] pin = CB1:gpio79 [mcu] serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290019000F504B4633373520-if00 [printer] kinematics = cartesian max_velocity = 300 max_accel = 2500 max_z_velocity = 5 max_z_accel = 100 [screws_tilt_adjust] screw1 = 60,40 screw1_name = front_left screw2 = 325,40 screw2_name = front_right screw3 = 60,315 screw3_name = back_left screw4 = 325,315 screw4_name = back_right speed = 50 horizontal_move_z = 5 screw_thread = CW-M3 [z_tilt] z_positions = -22, 180 394, 180 points = 50, 180 350, 180 speed = 50 horizontal_move_z = 5 retries = 3 retry_tolerance = 0.01 [tmc2209 stepper_x] uart_pin = PC10 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_y] uart_pin = PF13 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_z] uart_pin = PF9 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 stepper_z1] uart_pin = PD4 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 extruder] uart_pin = PD0 run_current = 0.800 stealthchop_threshold = 999999 [board_pins] aliases = EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, EXP1_7=PE15, EXP1_8=PB10, EXP1_9=, EXP1_10=<5V>, EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, EXP2_7=PE8, EXP2_8=, EXP2_9=, EXP2_10= [display] lcd_type = uc1701 cs_pin = EXP1_3 a0_pin = EXP1_4 rst_pin = EXP1_5 encoder_pins = ^EXP2_5, ^EXP2_3 click_pin = ^!EXP1_2 contrast = 63 spi_software_miso_pin = EXP2_1 spi_software_mosi_pin = EXP2_6 spi_software_sclk_pin = EXP2_2 [neopixel btt_mini12864] pin = EXP1_6 chain_count = 3 color_order = RGB initial_red = 0.4 initial_green = 0.4 initial_blue = 0.4 [delayed_gcode setdisplayneopixel] initial_duration = 1 gcode = {% set svv = printer.save_variables.variables %} {% set colour = svv.colour %} {% if colour == 1 %} green_light {% elif colour == 2 %} red_light {% elif colour == 3 %} blue_light {% elif colour == 4 %} orange_light {% elif colour == 5 %} yellow_light {% elif colour == 6 %} purple_light {% endif %} [menu __main __lights] type = list name = lights [menu __main __lights __green] type = command name = green gcode = SAVE_VARIABLE VARIABLE=colour VALUE={1} green_light [menu __main __lights __red] type = command name = red gcode = SAVE_VARIABLE VARIABLE=colour VALUE={2} red_light [menu __main __lights __blue] type = command name = blue gcode = SAVE_VARIABLE VARIABLE=colour VALUE={3} blue_light [menu __main __lights __orange] type = command name = orange gcode = SAVE_VARIABLE VARIABLE=colour VALUE={4} orange_light [menu __main __lights __yellow] type = command name = yellow gcode = SAVE_VARIABLE VARIABLE=colour VALUE={5} yellow_light [menu __main __lights __purple] type = command name = purple gcode = SAVE_VARIABLE VARIABLE=colour VALUE={6} purple_light [gcode_macro green_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 [gcode_macro red_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 [gcode_macro blue_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 [gcode_macro orange_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=3 [gcode_macro yellow_light] gcode = SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=3 [gcode_macro purple_light] gcode = SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=3 [gcode_macro print_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 [save_variables] filename = ~/variables.cfg [output_pin beeper] pin = EXP1_1 ======================= Config error Traceback (most recent call last): File "/home/biqu/klipper/klippy/klippy.py", line 175, in _connect self._read_config() File "/home/biqu/klipper/klippy/klippy.py", line 141, in _read_config self.load_object(config, section_config.get_name(), None) File "/home/biqu/klipper/klippy/klippy.py", line 130, in load_object self.objects[section] = init_func(config.getsection(section)) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 42, in load_config_prefix return PrinterHeaterFan(config) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 18, in __init__ self.fan = fan.Fan(config, default_shutdown_speed=1.) File "/home/biqu/klipper/klippy/extras/fan.py", line 27, in __init__ self.mcu_fan = ppins.setup_pin('pwm', config.get('pin')) File "/home/biqu/klipper/klippy/pins.py", line 117, in setup_pin pin_params = self.lookup_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 98, in lookup_pin pin_params = self.parse_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 83, in parse_pin raise error("Unknown pin chip name '%s'" % (chip_name,)) pins.error: Unknown pin chip name 'CB1' webhooks client 281473418172784: New connection webhooks client 281473418172784: Client info {'program': 'Moonraker', 'version': 'v0.7.1-882-g0a811b9'} Attempting MCU 'mcu' reset webhooks client 281473418172784: Disconnected Restarting printer Start printer at Mon Feb 27 00:30:54 2023 (1677457854.6 10504.2) ===== Config file ===== [virtual_sdcard] path = ~/printer_data/gcodes on_error_gcode = CANCEL_PRINT [pause_resume] [display_status] [gcode_macro CANCEL_PRINT] description = Cancel the actual running print rename_existing = CANCEL_PRINT_BASE variable_park = True gcode = {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%} PAUSE {% endif %} TURN_OFF_HEATERS M106 S0 CANCEL_PRINT_BASE [gcode_macro PAUSE] description = Pause the actual running print rename_existing = PAUSE_BASE gcode = {% if printer.virtual_sdcard.is_active == True %} {% if printer.pause_resume.is_paused == False %} PAUSE_BASE _TOOLHEAD_PARK_PAUSE_CANCEL {% endif %} {% endif %} [gcode_macro RESUME] description = Resume the actual running print rename_existing = RESUME_BASE gcode = {% if printer.pause_resume.is_paused %} {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude_extrude %} {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E{extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} {% endif %} [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] description = Helper: park toolhead used in PAUSE and CANCEL_PRINT variable_retract_extrude = 10.0 variable_extrude_extrude = 11.0 gcode = {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} {% set z_park_delta = 2.0 %} {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - z_park_delta) %} {% set z_safe = z_park_delta %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E-{retract_extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} {% else %} {action_respond_info("Printer not homed")} {% endif %} [stepper_x] step_pin = PE2 dir_pin = !PB4 enable_pin = !PC11 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF3 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_y] step_pin = PF12 dir_pin = !PF11 enable_pin = !PB3 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF4 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_z] step_pin = PD7 dir_pin = !PD6 enable_pin = !PF10 microsteps = 16 rotation_distance = 4 endstop_pin = probe:z_virtual_endstop position_min = -5 position_max = 400 homing_speed = 10 second_homing_speed = 3 homing_retract_dist = 8 [stepper_z1] step_pin = PD3 dir_pin = !PD2 enable_pin = !PD5 microsteps = 16 rotation_distance = 4 [extruder] step_pin = PC9 dir_pin = !PC8 enable_pin = !PD1 microsteps = 16 rotation_distance = 33.683 nozzle_diameter = 0.4 filament_diameter = 1.75 pressure_advance = 0.617 pressure_advance_smooth_time = 0.010 heater_pin = PE3 sensor_pin = PA1 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 22.2 pid_ki = 1.08 pid_kd = 114 min_temp = 0 max_temp = 260 [bltouch] sensor_pin = PB2 control_pin = PB1 x_offset = -45 y_offset = 0 z_offset = 2.60 speed = 3.0 pin_up_touch_mode_reports_triggered = False [safe_z_home] home_xy_position = 180, 180 speed = 100 z_hop = 10 z_hop_speed = 5 [bed_mesh] speed = 100 horizontal_move_z = 8 mesh_min = 50, 50 mesh_max = 300, 300 probe_count = 3, 3 [filament_switch_sensor material_0] switch_pin = PC1 [heater_bed] heater_pin = PB6 sensor_pin = PA0 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 690.34 pid_ki = 111.47 pid_kd = 1068.83 min_temp = 0 max_temp = 130 [fan] pin = PE6 [heater_fan fan1] pin = PE0 [heater_fan SoC_fan] pin = gpio79 [mcu] serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290019000F504B4633373520-if00 [printer] kinematics = cartesian max_velocity = 300 max_accel = 2500 max_z_velocity = 5 max_z_accel = 100 [screws_tilt_adjust] screw1 = 60,40 screw1_name = front_left screw2 = 325,40 screw2_name = front_right screw3 = 60,315 screw3_name = back_left screw4 = 325,315 screw4_name = back_right speed = 50 horizontal_move_z = 5 screw_thread = CW-M3 [z_tilt] z_positions = -22, 180 394, 180 points = 50, 180 350, 180 speed = 50 horizontal_move_z = 5 retries = 3 retry_tolerance = 0.01 [tmc2209 stepper_x] uart_pin = PC10 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_y] uart_pin = PF13 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_z] uart_pin = PF9 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 stepper_z1] uart_pin = PD4 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 extruder] uart_pin = PD0 run_current = 0.800 stealthchop_threshold = 999999 [board_pins] aliases = EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, EXP1_7=PE15, EXP1_8=PB10, EXP1_9=, EXP1_10=<5V>, EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, EXP2_7=PE8, EXP2_8=, EXP2_9=, EXP2_10= [display] lcd_type = uc1701 cs_pin = EXP1_3 a0_pin = EXP1_4 rst_pin = EXP1_5 encoder_pins = ^EXP2_5, ^EXP2_3 click_pin = ^!EXP1_2 contrast = 63 spi_software_miso_pin = EXP2_1 spi_software_mosi_pin = EXP2_6 spi_software_sclk_pin = EXP2_2 [neopixel btt_mini12864] pin = EXP1_6 chain_count = 3 color_order = RGB initial_red = 0.4 initial_green = 0.4 initial_blue = 0.4 [delayed_gcode setdisplayneopixel] initial_duration = 1 gcode = {% set svv = printer.save_variables.variables %} {% set colour = svv.colour %} {% if colour == 1 %} green_light {% elif colour == 2 %} red_light {% elif colour == 3 %} blue_light {% elif colour == 4 %} orange_light {% elif colour == 5 %} yellow_light {% elif colour == 6 %} purple_light {% endif %} [menu __main __lights] type = list name = lights [menu __main __lights __green] type = command name = green gcode = SAVE_VARIABLE VARIABLE=colour VALUE={1} green_light [menu __main __lights __red] type = command name = red gcode = SAVE_VARIABLE VARIABLE=colour VALUE={2} red_light [menu __main __lights __blue] type = command name = blue gcode = SAVE_VARIABLE VARIABLE=colour VALUE={3} blue_light [menu __main __lights __orange] type = command name = orange gcode = SAVE_VARIABLE VARIABLE=colour VALUE={4} orange_light [menu __main __lights __yellow] type = command name = yellow gcode = SAVE_VARIABLE VARIABLE=colour VALUE={5} yellow_light [menu __main __lights __purple] type = command name = purple gcode = SAVE_VARIABLE VARIABLE=colour VALUE={6} purple_light [gcode_macro green_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 [gcode_macro red_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 [gcode_macro blue_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 [gcode_macro orange_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=3 [gcode_macro yellow_light] gcode = SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=3 [gcode_macro purple_light] gcode = SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=3 [gcode_macro print_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 [save_variables] filename = ~/variables.cfg [output_pin beeper] pin = EXP1_1 ======================= Extruder max_extrude_ratio=0.266081 mcu 'mcu': Starting serial connect webhooks client 281473398586048: New connection webhooks client 281473398586048: Client info {'program': 'Moonraker', 'version': 'v0.7.1-882-g0a811b9'} Loaded MCU 'mcu' 105 commands (v0.10.0-623-g5b1a6676 / gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2) MCU 'mcu' config: ADC_MAX=4095 BUS_PINS_i2c1_PA9_PA10=PA9,PA10 BUS_PINS_i2c1_PB6_PB7=PB6,PB7 BUS_PINS_i2c1_PB8_PB9=PB8,PB9 BUS_PINS_i2c2_PB10_PB11=PB10,PB11 BUS_PINS_i2c2_PB13_PB14=PB13,PB14 BUS_PINS_i2c3_PB3_PB4=PB3,PB4 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3=PB4,PB5,PB3 CLOCK_FREQ=64000000 MCU=stm32g0b1xx PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PF0,PF1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1 Sending MCU 'mcu' printer configuration... Config error Traceback (most recent call last): File "/home/biqu/klipper/klippy/mcu.py", line 686, in _send_config self._serial.send(c) File "/home/biqu/klipper/klippy/serialhdl.py", line 256, in send cmd = self.msgparser.create_command(msg) File "/home/biqu/klipper/klippy/msgproto.py", line 344, in create_command cmd = mp.encode_by_name(**argparts) File "/home/biqu/klipper/klippy/msgproto.py", line 181, in encode_by_name t.encode(out, params[name]) File "/home/biqu/klipper/klippy/msgproto.py", line 108, in encode raise enumeration_error(self.enum_name, v) msgproto.enumeration_error: Unknown value 'gpio79' in enumeration 'pin' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/biqu/klipper/klippy/klippy.py", line 180, in _connect cb() File "/home/biqu/klipper/klippy/mcu.py", line 732, in _connect self._send_config(None) File "/home/biqu/klipper/klippy/mcu.py", line 697, in _send_config raise self._printer.config_error( configparser.Error: Pin 'gpio79' is not a valid pin name on mcu 'mcu' Attempting MCU 'mcu' reset command webhooks client 281473398586048: Disconnected Restarting printer Start printer at Mon Feb 27 00:31:40 2023 (1677457900.5 10550.1) ===== Config file ===== [virtual_sdcard] path = ~/printer_data/gcodes on_error_gcode = CANCEL_PRINT [pause_resume] [display_status] [gcode_macro CANCEL_PRINT] description = Cancel the actual running print rename_existing = CANCEL_PRINT_BASE variable_park = True gcode = {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%} PAUSE {% endif %} TURN_OFF_HEATERS M106 S0 CANCEL_PRINT_BASE [gcode_macro PAUSE] description = Pause the actual running print rename_existing = PAUSE_BASE gcode = {% if printer.virtual_sdcard.is_active == True %} {% if printer.pause_resume.is_paused == False %} PAUSE_BASE _TOOLHEAD_PARK_PAUSE_CANCEL {% endif %} {% endif %} [gcode_macro RESUME] description = Resume the actual running print rename_existing = RESUME_BASE gcode = {% if printer.pause_resume.is_paused %} {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude_extrude %} {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E{extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} {% endif %} [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] description = Helper: park toolhead used in PAUSE and CANCEL_PRINT variable_retract_extrude = 10.0 variable_extrude_extrude = 11.0 gcode = {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} {% set z_park_delta = 2.0 %} {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - z_park_delta) %} {% set z_safe = z_park_delta %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E-{retract_extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} {% else %} {action_respond_info("Printer not homed")} {% endif %} [stepper_x] step_pin = PE2 dir_pin = !PB4 enable_pin = !PC11 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF3 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_y] step_pin = PF12 dir_pin = !PF11 enable_pin = !PB3 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF4 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_z] step_pin = PD7 dir_pin = !PD6 enable_pin = !PF10 microsteps = 16 rotation_distance = 4 endstop_pin = probe:z_virtual_endstop position_min = -5 position_max = 400 homing_speed = 10 second_homing_speed = 3 homing_retract_dist = 8 [stepper_z1] step_pin = PD3 dir_pin = !PD2 enable_pin = !PD5 microsteps = 16 rotation_distance = 4 [extruder] step_pin = PC9 dir_pin = !PC8 enable_pin = !PD1 microsteps = 16 rotation_distance = 33.683 nozzle_diameter = 0.4 filament_diameter = 1.75 pressure_advance = 0.617 pressure_advance_smooth_time = 0.010 heater_pin = PE3 sensor_pin = PA1 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 22.2 pid_ki = 1.08 pid_kd = 114 min_temp = 0 max_temp = 260 [bltouch] sensor_pin = PB2 control_pin = PB1 x_offset = -45 y_offset = 0 z_offset = 2.60 speed = 3.0 pin_up_touch_mode_reports_triggered = False [safe_z_home] home_xy_position = 180, 180 speed = 100 z_hop = 10 z_hop_speed = 5 [bed_mesh] speed = 100 horizontal_move_z = 8 mesh_min = 50, 50 mesh_max = 300, 300 probe_count = 3, 3 [filament_switch_sensor material_0] switch_pin = PC1 [heater_bed] heater_pin = PB6 sensor_pin = PA0 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 690.34 pid_ki = 111.47 pid_kd = 1068.83 min_temp = 0 max_temp = 130 [fan] pin = PE6 [heater_fan fan1] pin = PE0 [heater_fan SoC_fan] pin = CB1:gpio79 [mcu] serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290019000F504B4633373520-if00 [printer] kinematics = cartesian max_velocity = 300 max_accel = 2500 max_z_velocity = 5 max_z_accel = 100 [screws_tilt_adjust] screw1 = 60,40 screw1_name = front_left screw2 = 325,40 screw2_name = front_right screw3 = 60,315 screw3_name = back_left screw4 = 325,315 screw4_name = back_right speed = 50 horizontal_move_z = 5 screw_thread = CW-M3 [z_tilt] z_positions = -22, 180 394, 180 points = 50, 180 350, 180 speed = 50 horizontal_move_z = 5 retries = 3 retry_tolerance = 0.01 [tmc2209 stepper_x] uart_pin = PC10 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_y] uart_pin = PF13 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_z] uart_pin = PF9 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 stepper_z1] uart_pin = PD4 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 extruder] uart_pin = PD0 run_current = 0.800 stealthchop_threshold = 999999 [board_pins] aliases = EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, EXP1_7=PE15, EXP1_8=PB10, EXP1_9=, EXP1_10=<5V>, EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, EXP2_7=PE8, EXP2_8=, EXP2_9=, EXP2_10= [display] lcd_type = uc1701 cs_pin = EXP1_3 a0_pin = EXP1_4 rst_pin = EXP1_5 encoder_pins = ^EXP2_5, ^EXP2_3 click_pin = ^!EXP1_2 contrast = 63 spi_software_miso_pin = EXP2_1 spi_software_mosi_pin = EXP2_6 spi_software_sclk_pin = EXP2_2 [neopixel btt_mini12864] pin = EXP1_6 chain_count = 3 color_order = RGB initial_red = 0.4 initial_green = 0.4 initial_blue = 0.4 [delayed_gcode setdisplayneopixel] initial_duration = 1 gcode = {% set svv = printer.save_variables.variables %} {% set colour = svv.colour %} {% if colour == 1 %} green_light {% elif colour == 2 %} red_light {% elif colour == 3 %} blue_light {% elif colour == 4 %} orange_light {% elif colour == 5 %} yellow_light {% elif colour == 6 %} purple_light {% endif %} [menu __main __lights] type = list name = lights [menu __main __lights __green] type = command name = green gcode = SAVE_VARIABLE VARIABLE=colour VALUE={1} green_light [menu __main __lights __red] type = command name = red gcode = SAVE_VARIABLE VARIABLE=colour VALUE={2} red_light [menu __main __lights __blue] type = command name = blue gcode = SAVE_VARIABLE VARIABLE=colour VALUE={3} blue_light [menu __main __lights __orange] type = command name = orange gcode = SAVE_VARIABLE VARIABLE=colour VALUE={4} orange_light [menu __main __lights __yellow] type = command name = yellow gcode = SAVE_VARIABLE VARIABLE=colour VALUE={5} yellow_light [menu __main __lights __purple] type = command name = purple gcode = SAVE_VARIABLE VARIABLE=colour VALUE={6} purple_light [gcode_macro green_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 [gcode_macro red_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 [gcode_macro blue_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 [gcode_macro orange_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=3 [gcode_macro yellow_light] gcode = SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=3 [gcode_macro purple_light] gcode = SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=3 [gcode_macro print_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 [save_variables] filename = ~/variables.cfg [output_pin beeper] pin = EXP1_1 ======================= Config error Traceback (most recent call last): File "/home/biqu/klipper/klippy/klippy.py", line 175, in _connect self._read_config() File "/home/biqu/klipper/klippy/klippy.py", line 141, in _read_config self.load_object(config, section_config.get_name(), None) File "/home/biqu/klipper/klippy/klippy.py", line 130, in load_object self.objects[section] = init_func(config.getsection(section)) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 42, in load_config_prefix return PrinterHeaterFan(config) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 18, in __init__ self.fan = fan.Fan(config, default_shutdown_speed=1.) File "/home/biqu/klipper/klippy/extras/fan.py", line 27, in __init__ self.mcu_fan = ppins.setup_pin('pwm', config.get('pin')) File "/home/biqu/klipper/klippy/pins.py", line 117, in setup_pin pin_params = self.lookup_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 98, in lookup_pin pin_params = self.parse_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 83, in parse_pin raise error("Unknown pin chip name '%s'" % (chip_name,)) pins.error: Unknown pin chip name 'CB1' webhooks client 281473418322800: New connection webhooks client 281473418322800: Client info {'program': 'Moonraker', 'version': 'v0.7.1-882-g0a811b9'} Attempting MCU 'mcu' reset webhooks client 281473418322800: Disconnected Restarting printer Start printer at Mon Feb 27 00:49:15 2023 (1677458955.2 11604.8) ===== Config file ===== [virtual_sdcard] path = ~/printer_data/gcodes on_error_gcode = CANCEL_PRINT [pause_resume] [display_status] [gcode_macro CANCEL_PRINT] description = Cancel the actual running print rename_existing = CANCEL_PRINT_BASE variable_park = True gcode = {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%} PAUSE {% endif %} TURN_OFF_HEATERS M106 S0 CANCEL_PRINT_BASE [gcode_macro PAUSE] description = Pause the actual running print rename_existing = PAUSE_BASE gcode = {% if printer.virtual_sdcard.is_active == True %} {% if printer.pause_resume.is_paused == False %} PAUSE_BASE _TOOLHEAD_PARK_PAUSE_CANCEL {% endif %} {% endif %} [gcode_macro RESUME] description = Resume the actual running print rename_existing = RESUME_BASE gcode = {% if printer.pause_resume.is_paused %} {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude_extrude %} {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E{extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} {% endif %} [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] description = Helper: park toolhead used in PAUSE and CANCEL_PRINT variable_retract_extrude = 10.0 variable_extrude_extrude = 11.0 gcode = {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} {% set z_park_delta = 2.0 %} {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - z_park_delta) %} {% set z_safe = z_park_delta %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} {% if printer.extruder.can_extrude|lower == 'true' %} M83 G1 E-{retract_extrude} F2100 {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} {% else %} {action_respond_info("Printer not homed")} {% endif %} [stepper_x] step_pin = PE2 dir_pin = !PB4 enable_pin = !PC11 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF3 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_y] step_pin = PF12 dir_pin = !PF11 enable_pin = !PB3 microsteps = 16 rotation_distance = 40 endstop_pin = ^PF4 position_endstop = 350 position_max = 350 homing_speed = 100 [stepper_z] step_pin = PD7 dir_pin = !PD6 enable_pin = !PF10 microsteps = 16 rotation_distance = 4 endstop_pin = probe:z_virtual_endstop position_min = -5 position_max = 400 homing_speed = 10 second_homing_speed = 3 homing_retract_dist = 8 [stepper_z1] step_pin = PD3 dir_pin = !PD2 enable_pin = !PD5 microsteps = 16 rotation_distance = 4 [extruder] step_pin = PC9 dir_pin = !PC8 enable_pin = !PD1 microsteps = 16 rotation_distance = 33.683 nozzle_diameter = 0.4 filament_diameter = 1.75 pressure_advance = 0.617 pressure_advance_smooth_time = 0.010 heater_pin = PE3 sensor_pin = PA1 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 22.2 pid_ki = 1.08 pid_kd = 114 min_temp = 0 max_temp = 260 [bltouch] sensor_pin = PB2 control_pin = PB1 x_offset = -45 y_offset = 0 z_offset = 2.60 speed = 3.0 pin_up_touch_mode_reports_triggered = False [safe_z_home] home_xy_position = 180, 180 speed = 100 z_hop = 10 z_hop_speed = 5 [bed_mesh] speed = 100 horizontal_move_z = 8 mesh_min = 50, 50 mesh_max = 300, 300 probe_count = 3, 3 [filament_switch_sensor material_0] switch_pin = PC1 [heater_bed] heater_pin = PB6 sensor_pin = PA0 sensor_type = EPCOS 100K B57560G104F control = pid pid_kp = 690.34 pid_ki = 111.47 pid_kd = 1068.83 min_temp = 0 max_temp = 130 [fan] pin = PE6 [heater_fan fan1] pin = PE0 [heater_fan SoC_fan] pin = CB1:gpio79 [mcu] serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290019000F504B4633373520-if00 [printer] kinematics = cartesian max_velocity = 300 max_accel = 2500 max_z_velocity = 5 max_z_accel = 100 [screws_tilt_adjust] screw1 = 60,40 screw1_name = front_left screw2 = 325,40 screw2_name = front_right screw3 = 60,315 screw3_name = back_left screw4 = 325,315 screw4_name = back_right speed = 50 horizontal_move_z = 5 screw_thread = CW-M3 [z_tilt] z_positions = -22, 180 394, 180 points = 50, 180 350, 180 speed = 50 horizontal_move_z = 5 retries = 3 retry_tolerance = 0.01 [tmc2209 stepper_x] uart_pin = PC10 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_y] uart_pin = PF13 run_current = 0.800 stealthchop_threshold = 999999 [tmc2209 stepper_z] uart_pin = PF9 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 stepper_z1] uart_pin = PD4 run_current = 0.650 stealthchop_threshold = 999999 [tmc2209 extruder] uart_pin = PD0 run_current = 0.800 stealthchop_threshold = 999999 [board_pins] aliases = EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, EXP1_7=PE15, EXP1_8=PB10, EXP1_9=, EXP1_10=<5V>, EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, EXP2_7=PE8, EXP2_8=, EXP2_9=, EXP2_10= [display] lcd_type = uc1701 cs_pin = EXP1_3 a0_pin = EXP1_4 rst_pin = EXP1_5 encoder_pins = ^EXP2_5, ^EXP2_3 click_pin = ^!EXP1_2 contrast = 63 spi_software_miso_pin = EXP2_1 spi_software_mosi_pin = EXP2_6 spi_software_sclk_pin = EXP2_2 [neopixel btt_mini12864] pin = EXP1_6 chain_count = 3 color_order = RGB initial_red = 0.4 initial_green = 0.4 initial_blue = 0.4 [delayed_gcode setdisplayneopixel] initial_duration = 1 gcode = {% set svv = printer.save_variables.variables %} {% set colour = svv.colour %} {% if colour == 1 %} green_light {% elif colour == 2 %} red_light {% elif colour == 3 %} blue_light {% elif colour == 4 %} orange_light {% elif colour == 5 %} yellow_light {% elif colour == 6 %} purple_light {% endif %} [menu __main __lights] type = list name = lights [menu __main __lights __green] type = command name = green gcode = SAVE_VARIABLE VARIABLE=colour VALUE={1} green_light [menu __main __lights __red] type = command name = red gcode = SAVE_VARIABLE VARIABLE=colour VALUE={2} red_light [menu __main __lights __blue] type = command name = blue gcode = SAVE_VARIABLE VARIABLE=colour VALUE={3} blue_light [menu __main __lights __orange] type = command name = orange gcode = SAVE_VARIABLE VARIABLE=colour VALUE={4} orange_light [menu __main __lights __yellow] type = command name = yellow gcode = SAVE_VARIABLE VARIABLE=colour VALUE={5} yellow_light [menu __main __lights __purple] type = command name = purple gcode = SAVE_VARIABLE VARIABLE=colour VALUE={6} purple_light [gcode_macro green_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 [gcode_macro red_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 [gcode_macro blue_light] gcode = SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 [gcode_macro orange_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=1 GREEN=.5 BLUE=0 INDEX=3 [gcode_macro yellow_light] gcode = SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.98 GREEN=.96 BLUE=.3 INDEX=3 [gcode_macro purple_light] gcode = SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=1 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=.62 GREEN=.12 BLUE=.94 INDEX=3 [gcode_macro print_light] gcode = SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0 SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=1 [save_variables] filename = ~/variables.cfg [output_pin beeper] pin = EXP1_1 ======================= Config error Traceback (most recent call last): File "/home/biqu/klipper/klippy/klippy.py", line 175, in _connect self._read_config() File "/home/biqu/klipper/klippy/klippy.py", line 141, in _read_config self.load_object(config, section_config.get_name(), None) File "/home/biqu/klipper/klippy/klippy.py", line 130, in load_object self.objects[section] = init_func(config.getsection(section)) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 42, in load_config_prefix return PrinterHeaterFan(config) File "/home/biqu/klipper/klippy/extras/heater_fan.py", line 18, in __init__ self.fan = fan.Fan(config, default_shutdown_speed=1.) File "/home/biqu/klipper/klippy/extras/fan.py", line 27, in __init__ self.mcu_fan = ppins.setup_pin('pwm', config.get('pin')) File "/home/biqu/klipper/klippy/pins.py", line 117, in setup_pin pin_params = self.lookup_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 98, in lookup_pin pin_params = self.parse_pin(pin_desc, can_invert, can_pullup) File "/home/biqu/klipper/klippy/pins.py", line 83, in parse_pin raise error("Unknown pin chip name '%s'" % (chip_name,)) pins.error: Unknown pin chip name 'CB1' webhooks client 281473416255568: New connection webhooks client 281473416255568: Client info {'program': 'Moonraker', 'version': 'v0.7.1-882-g0a811b9'}