More changes pulled from personal. Added filament sensor pinout.

This commit is contained in:
Bassam Husain
2023-03-14 19:47:16 -04:00
3 changed files with 15 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
##################################################################### #####################################################################
# Find my instructions here: # Find my instructions here:
# https://github.com/bassamanator/rp2040-zero-adxl345-klipper # https://github.com/bassamanator/rp2040-zero-adxl345-klipper
# ADXL345 related Settings
# https://www.klipper3d.org/Measuring_Resonances.html#adxl345
##################################################################### #####################################################################
[mcu RP2040] [mcu RP2040]

View File

@@ -14,10 +14,10 @@ path: /home/pi/printer_data/gcodes
[pause_resume] [pause_resume]
[display_status] [display_status]
# [delayed_gcode DISABLEFILAMENTSENSOR] [delayed_gcode DISABLEFILAMENTSENSOR]
# initial_duration: 1 initial_duration: 1
# gcode: gcode:
# SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=0 SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=0
[gcode_macro _globals] [gcode_macro _globals]
variable_filament_sensor_enabled: 0 # NOTE Enable(1) or disable(0) the filament sensor, if one is connected variable_filament_sensor_enabled: 0 # NOTE Enable(1) or disable(0) the filament sensor, if one is connected

View File

@@ -218,3 +218,12 @@ value: 0
shutdown_value: 0 shutdown_value: 0
pwm: True pwm: True
cycle_time: 0.0005 ; Default beeper tone in kHz. 1 / 0.0005 = 2000Hz (2kHz) cycle_time: 0.0005 ; Default beeper tone in kHz. 1 / 0.0005 = 2000Hz (2kHz)
[filament_switch_sensor filament_sensor]
switch_pin: !PA4 # "Pulled-high"
pause_on_runout: True
insert_gcode:
M117 Insert Detected
runout_gcode:
M117 Runout Detected
CONDITIONAL_BEEP i=3 dur=300 freq=400