Fixed typos
This commit is contained in:
parent
5e8ea8e41f
commit
3fb0a3d26a
3 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Adafruit_MSA301 [ {
|
|||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue