Skip to content

Commit

Permalink
RP2040 USB support for Fysetc PortableInputShaper (Frix-x#345)
Browse files Browse the repository at this point in the history
* Add RP2040 SPI1 USB boards (Frix-x#342)
* added Fysetc portableinputshaper support to printer.cfg

---------

Co-authored-by: Luk Schwalb <[email protected]>
  • Loading branch information
Frix-x and lukschwalb authored Nov 17, 2023
1 parent 6fe679e commit c56fb96
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
29 changes: 29 additions & 0 deletions config/hardware/accelerometers/adxl345_usb_rp2040_spi1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This ADXL file is dedicated to be used with USB RP2040 boards where the ADXL
# is connected to SPI1

# This include FYSTEC PortableInputShaper, ...


# You need to set the proper serial in your overrides.cfg file
[mcu adxl]
serial: /dev/serial/by-id/xxx

[adxl345]
cs_pin: adxl:gpio13
spi_software_sclk_pin: adxl:gpio10
spi_software_mosi_pin: adxl:gpio11
spi_software_miso_pin: adxl:gpio12
axes_map: x,y,z
# FYSTEC POS: x,-z,y

[resonance_tester]
accel_chip: adxl345
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]
5 changes: 3 additions & 2 deletions user_templates/printer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@

# ------------------------------------------------------------------------ HEATED BED ----
### --------------------------------------------------------------------------------------
# [include config/hardware/bed_heaters/keenovo.cfg]
# [include config/hardware/bed_heaters/creality.cfg]
# [include config/hardware/bed_heaters/keenovo.cfg] # Used for most machines with NTC100K bed temperature sensors
# [include config/hardware/bed_heaters/creality.cfg] # For machines with EPCOS 100k sensors like creality, etc...
# ----------------------------------------------------------------------------------------


Expand Down Expand Up @@ -170,6 +170,7 @@
# [include config/hardware/accelerometers/adxl345_rpi.cfg] # For ADXL plugged directly on the Pi (official and recommended way)
# [include config/hardware/accelerometers/adxl345_usb.cfg] # For KUBSA, ...
# [include config/hardware/accelerometers/adxl345_usb_rampon.cfg] # For KUBSA with Rampon firmware, ...
# [include config/hardware/accelerometers/adxl345_usb_rp2040_spi1.cfg] # For Fysetc PortableInputShaper, ...
# [include config/hardware/accelerometers/adxl345_skr.cfg] # For ADXL plugged in SKRv1.4 (not a conventional way)

# [include config/hardware/accelerometers/adxl345_sb2040.cfg] # For ADXL plugged in Mellow Fly-SB2040 boards
Expand Down

0 comments on commit c56fb96

Please sign in to comment.