diff --git a/config/hardware/accelerometers/lis2dw_usb_rp2040_spi1.cfg b/config/hardware/accelerometers/lis2dw_usb_rp2040_spi1.cfg new file mode 100644 index 000000000..a9063b3fa --- /dev/null +++ b/config/hardware/accelerometers/lis2dw_usb_rp2040_spi1.cfg @@ -0,0 +1,26 @@ +# This LIS2DW file is dedicated to be used with USB RP2040 boards where the LIS2DW +# is connected to SPI1 + +# This include BTT S2DW V1.0, ... + + +# You need to set the proper serial in your overrides.cfg file +[mcu lis2dw_mcu] +serial: /dev/serial/by-id/xxx + +[lis2dw] +cs_pin: lis2dw_mcu:gpio9 +spi_bus: spi1a +axes_map: -y,x,-z + +[resonance_tester] +accel_chip: lis2dw +probe_points: + -1,-1,-1 + + +# Include the IS calibration macros to unlock them when +# an accelerometer is installed on the machine +[include ../../../macros/helpers/resonance_override.cfg] +[include ../../../macros/calibration/IS_shaper_calibrate.cfg] +[include ../../../macros/calibration/IS_vibrations_measurement.cfg] diff --git a/user_templates/printer.cfg b/user_templates/printer.cfg index 2f3378dd2..e7f50e614 100644 --- a/user_templates/printer.cfg +++ b/user_templates/printer.cfg @@ -178,6 +178,8 @@ # [include config/hardware/accelerometers/adxl345_ebb.cfg] # For ADXL plugged in BTT EBB36 or EBB42 boards # [include config/hardware/accelerometers/adxl345_sht.cfg] # For ADXL plugged in Mellow SHT36 or SHT42 boards # [include config/hardware/accelerometers/adxl345_BTT_SB22xx.cfg] # For ADXL plugged in BTT SB2209 or SB2240 boards + +# [include config/hardware/accelerometers/lis2dw_usb_rp2040_spi1.cfg] # For BTT S2DW V1.0, ... # ----------------------------------------------------------------------------------------