diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-07-30 01:32:17 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-09-05 09:11:04 -0400 |
commit | 3405095f0af639ececb74409ac66923ca6bfe49b (patch) | |
tree | 6056016d4582eaf82f62a8f500a3734c3fe81e37 /config | |
parent | 2b2b610cffaa14167d24dd6b18ef5beefb5c2b02 (diff) | |
download | kutter-3405095f0af639ececb74409ac66923ca6bfe49b.tar.gz kutter-3405095f0af639ececb74409ac66923ca6bfe49b.tar.xz kutter-3405095f0af639ececb74409ac66923ca6bfe49b.zip |
adxl345: Add support for adxl345 accelerometer
Add support for taking measurements from an adxl345 accelerometer via
SPI interface.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config')
-rw-r--r-- | config/example-extras.cfg | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg index 337f0b61..02647458 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -556,6 +556,32 @@ # measurements, e.g. with an accelerometer. # Default value is 0.1 which is a good all-round value for most printers. +# Support for ADXL345 accelerometers. This support allows one to query +# accelerometer measurements from the sensor. This enables an +# ACCELEROMETER_MEASURE command (see docs/G-Codes.md for more +# information). The default chip name is "default", but one may +# specify an explicit name (eg, [adxl345 my_chip_name]). +#[adxl345] +#axes_map: x,y,z +# The accelerometer axis for each of the printer's x, y, and z axes. +# This may be useful if the accelerometer is mounted in an +# orientation that does not match the printer orientation. For +# example, one could set this to "y,x,z" to swap the x and y axes. +# It is also possible to negate an axis if the accelerometer +# direction is reversed (eg, "x,z,-y"). The default is "x,y,z". +#cs_pin: +# The SPI enable pin for the sensor. This parameter must be +# provided. +#spi_speed: 5000000 +# The SPI speed (in hz) to use when communicating with the chip. +# The default is 5000000. +#spi_bus: +#spi_software_sclk_pin: +#spi_software_mosi_pin: +#spi_software_miso_pin: +# These optional parameters allow one to customize the SPI settings +# used to communicate with the chip. + ###################################################################### # Config file helpers |