From eeb9cb6147a30af9f8934dccca6627f9ffa175b7 Mon Sep 17 00:00:00 2001 From: Bassam Husain Date: Tue, 31 Jan 2023 15:05:31 -0500 Subject: [PATCH] Cleanup in adxl*. --- macros/adxl-direct.cfg | 6 ++++-- macros/adxl-rp2040.cfg | 15 +++++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/macros/adxl-direct.cfg b/macros/adxl-direct.cfg index 1c8670e..2f9ca64 100644 --- a/macros/adxl-direct.cfg +++ b/macros/adxl-direct.cfg @@ -1,3 +1,6 @@ +# Documentation https://www.klipper3d.org/Measuring_Resonances.html?h=adxl#configure-adxl345-with-rpi +# Documentation https://www.klipper3d.org/RPi_microcontroller.html + [mcu rpi] serial: /tmp/klipper_host_mcu @@ -6,5 +9,4 @@ cs_pin: rpi:None [resonance_tester] accel_chip: adxl345 -probe_points: - 111.5, 111.5, 20 +probe_points: 111.5, 111.5, 20 diff --git a/macros/adxl-rp2040.cfg b/macros/adxl-rp2040.cfg index 1bbe1d1..bf02a8e 100644 --- a/macros/adxl-rp2040.cfg +++ b/macros/adxl-rp2040.cfg @@ -3,13 +3,20 @@ # https://www.klipper3d.org/Measuring_Resonances.html#adxl345 ##################################################################### -[mcu rpi] +[mcu rp2040] +baud: 115200 # 250000 +restart_method: command +# Obtain definition by "ls -l /dev/serial/by-id/" serial: /dev/serial/by-id/usb-Klipper_rp2040_E66138935F154C28-if00 [adxl345] -cs_pin: rpi:None +spi_software_miso_pin: rp2040:gpio8 +cs_pin: rp2040:gpio9 +# spi_bus: spi0b +spi_software_sclk_pin: rp2040:gpio10 +spi_software_mosi_pin: rp2040:gpio11 +axes_map: x,y,z [resonance_tester] accel_chip: adxl345 -probe_points: - 110, 110, 20 # an example \ No newline at end of file +probe_points: 111.5, 111.5, 20 \ No newline at end of file