From 3405095f0af639ececb74409ac66923ca6bfe49b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 30 Jul 2020 01:32:17 -0400 Subject: adxl345: Add support for adxl345 accelerometer Add support for taking measurements from an adxl345 accelerometer via SPI interface. Signed-off-by: Kevin O'Connor --- docs/G-Codes.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs') diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 3b5db9ad..04e3e6ef 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -633,3 +633,17 @@ section is enabled: [target=]`: Sets the target temperature for a temperature_fan. If a target is not supplied, it is set to the specified temperature in the config file. + +## Adxl345 Accelerometer Commands + +The following command is available when an "adxl345" config section is +enabled: +- `ACCELEROMETER_MEASURE [CHIP=] [RATE=] + [NAME=]`: Starts accelerometer measurements at the requested + number of samples per second. If CHIP is not specified it defaults + to "default". Valid rates are 25, 50, 100, 200, 400, 800, 1600, + and 3200. If RATE is zero (or not specified) then the current series + of measurements are stopped and the results are written to a file + named `/tmp/adxl345-.csv` where "" is the optional NAME + parameter. If NAME is not specified it defaults to the current time + in "YYYYMMDD_HHMMSS" format. -- cgit v1.2.3-70-g09d2