diff --git a/Adafruit_MSA301.cpp b/Adafruit_MSA301.cpp index f259735..231e626 100644 --- a/Adafruit_MSA301.cpp +++ b/Adafruit_MSA301.cpp @@ -297,7 +297,7 @@ void Adafruit_MSA301::read(void) { @brief Set the click detection register thresholds @param tap_quiet TAP_QUIET flag (check datasheet for details) @param tap_shock TAP_SHOCK flag (check datasheet for details) - @param tapduration How long to listen for a tap (check datasheet for details) + @param tapduration How long to listen for a second tap (check datasheet for details) @param tapthresh How strong the tap signal has to be (check datasheet for details) */ @@ -324,7 +324,7 @@ void Adafruit_MSA301::setClick(bool tap_quiet, bool tap_shock, Adafruit_BusIO_RegisterBits(&TapTh, 5, 0); threshbits.write(tapthresh); } - +3 /**************************************************************************/ /*! @brief Gets the most recent click detect status register value diff --git a/README.md b/README.md index ce43e10..d96c8c4 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Adafruit_MSA301 [![Build Status](https://travis-ci.com/adafruit/Adafruit_MSA301. This is the Adafruit MSA301 Accelerometer library -Tested and works great with the Adafruit DS3502 Breakout Board -* http://www.adafruit.com/products +Tested and works great with the Adafruit MSA301 Breakout Board +* https://www.adafruit.com/product/4344 This chip uses I2C to communicate, 2 pins are required to interface diff --git a/examples/tapdemo/tapdemo.ino b/examples/tapdemo/tapdemo.ino index 6d8aacc..2d2a7ec 100644 --- a/examples/tapdemo/tapdemo.ino +++ b/examples/tapdemo/tapdemo.ino @@ -20,6 +20,7 @@ void setup() { msa.setBandwidth(MSA301_BANDWIDTH_500_HZ); msa.setRange(MSA301_RANGE_2_G); msa.setResolution(MSA301_RESOLUTION_14 ); + msa.setClick(false, false, MSA301_TAPDUR_250_MS, 25); msa.enableInterrupts(true, true); // enable single/double tap }