bigtreetech / LIS2DW

17 stars 5 forks source link

LSDW cfg incorrect #2

Open Mezabaru opened 11 months ago

Mezabaru commented 11 months ago

here it says btt_adxl when it should be like so.

[lis2dw] cs_pin: btt_lis2dw:gpio9

spi_bus: spi1a

spi_software_sclk_pin: btt_lis2dw:gpio10 spi_software_mosi_pin: btt_lis2dw:gpio11 spi_software_miso_pin: btt_lis2dw:gpio8 axes_map: -y,x,-z

[resonance_tester] probe_points: 100, 100, 20 accel_chip: lis2dw

nasciiboy commented 7 months ago

this works for me

[mcu lis]
# Change <mySerial> to whatever you found above. For example,
# usb-Klipper_rp2040_E661640843545B2E-if00
serial: /dev/serial/by-id/usb-Klipper_rp2040_btt_acc-if00

[lis2dw]
cs_pin: lis:gpio9
#spi_bus: spi1a
spi_software_sclk_pin: lis:gpio10
spi_software_mosi_pin: lis:gpio11
spi_software_miso_pin: lis:gpio8
axes_map: -y,x,-z

[resonance_tester]
accel_chip: lis2dw
probe_points:
    # Somewhere slightly above the middle of your print bed
    115,115,20