Fixed typos

This commit is contained in:
siddacious 2019-09-16 16:03:41 -07:00
parent 5e8ea8e41f
commit 3fb0a3d26a
3 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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
}