aboutsummaryrefslogtreecommitdiffstats
path: root/docs/G-Codes.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/G-Codes.md')
-rw-r--r--docs/G-Codes.md14
1 files changed, 14 insertions, 0 deletions
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=<target_temperature>]`: 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=<config_name>] [RATE=<value>]
+ [NAME=<value>]`: 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-<name>.csv` where "<name>" is the optional NAME
+ parameter. If NAME is not specified it defaults to the current time
+ in "YYYYMMDD_HHMMSS" format.