aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-07-30 01:32:17 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-09-05 09:11:04 -0400
commit3405095f0af639ececb74409ac66923ca6bfe49b (patch)
tree6056016d4582eaf82f62a8f500a3734c3fe81e37 /docs
parent2b2b610cffaa14167d24dd6b18ef5beefb5c2b02 (diff)
downloadkutter-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 'docs')
-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.