Created adxl-rp2040.cfg. Cleanup in klipper*.cfg.

This commit is contained in:
Bassam Husain
2023-01-21 07:34:12 -05:00
parent 5fb876db45
commit f10ce8489e
2 changed files with 21 additions and 22 deletions

15
adxl-rp2040.cfg Normal file
View File

@@ -0,0 +1,15 @@
#####################################################################
# ADXL345 related Settings
# https://www.klipper3d.org/Measuring_Resonances.html#adxl345
#####################################################################
[mcu rpi]
serial: /dev/serial/by-id/usb-Klipper_rp2040_E66138935F154C28-if00
[adxl345]
cs_pin: rpi:None
[resonance_tester]
accel_chip: adxl345
probe_points:
110, 110, 20 # an example

View File

@@ -14,11 +14,11 @@
[include ./macros/TEST_SPEED.cfg]
[include ./macros/PARKING.cfg]
[include ./macros/MECHANICAL_GANTRY_CALIBRATION.cfg]
# Uncomment the following line if you're using an adxl345, and have it setup
[include ./adxl-rp2040.cfg]
[mcu]
#####################################################################
# Obtain definition by "ls -l /dev/serial/by-id/"
#####################################################################
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
# restart_method: command # NOTE is this needed?
@@ -136,21 +136,9 @@ sense_resistor: 0.150
uart_address: 3
#####################################################################
# ADXL345 related Settings
# https://www.klipper3d.org/Measuring_Resonances.html#adxl345
# Misc
#####################################################################
# Uncomment this section if you're using an adxl345
# [mcu rpi]
# serial: /tmp/klipper_host_mcu
# [adxl345]
# cs_pin: rpi:None
# [resonance_tester]
# accel_chip: adxl345
# probe_points: 110, 110, 20
# [input_shaper]
# shaper_freq_x: 46.948
# shaper_type_x: mzv
@@ -158,12 +146,8 @@ uart_address: 3
# shaper_type_y: mzv
# shaper_type: ei
#####################################################################
# Misc
#####################################################################
# [virtual_sdcard]
# path: /home/pi/gcode_files/
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
@@ -226,4 +210,4 @@ cs_pin: PB12
sclk_pin: PB13
sid_pin: PB15
encoder_pins: ^PB14, ^PB10
click_pin: ^!PB2
click_pin: ^!PB2