Skip to content

Commit

Permalink
Finished through setXHighThreshold
Browse files Browse the repository at this point in the history
  • Loading branch information
J3RN committed Jun 16, 2013
1 parent e5addfa commit ee2fbd0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
9 changes: 9 additions & 0 deletions Arduino/L3G4200D/L3G4200D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,15 @@ bool L3G4200D::getXLow() {
buffer);
}

// INT1_THS_* registers, r/w

/** Set the threshold for a high interrupt on the X axis
* @param threshold The new threshold for a high interrupt on the X axis
* @see L3G4200D_INT1_THS_XH
*/
void L3G4200D::setXHighThreshold(uint8_t threshold) {
I2Cdev::writeByte(devAddr, L3G4200D_INT1_THS_XH, threshold);
}



Expand Down
14 changes: 7 additions & 7 deletions Arduino/L3G4200D/L3G4200D.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,30 +329,30 @@ class L3G4200D {
bool getYHigh();
bool getYLow();
bool getXHigh();
bool getXHigh();
bool getXLow();

// INT1_THS_XH register, r/w
void setXHighThreshold(uint8_t);
void setXHighThreshold(uint8_t threshold);
uint8_t getXHighThreshold();

// INT1_THS_XL register, r/w
void setXLowThreshold(uint8_t);
void setXLowThreshold(uint8_t threshold);
uint8_t getXLowThreshold();

// INT1_THS_YH register, r/w
void setYHighThreshold(uint8_t);
void setYHighThreshold(uint8_t threshold);
uint8_t getYHighThreshold();

// INT1_THS_YL register, r/w
void setYLowThreshold(uint8_t);
void setYLowThreshold(uint8_t threshold);
uint8_t getYLowThreshold();

// INT1_THS_ZH register, r/w
void setZHighThreshold(uint8_t);
void setZHighThreshold(uint8_t threshold);
uint8_t getZHighThreshold();

// INT1_THS_ZL register, r/w
void setZLowThreshold(uint8_t);
void setZLowThreshold(uint8_t threshold);
uint8_t getZLowThreshold();

// INT1_DURATION register
Expand Down

0 comments on commit ee2fbd0

Please sign in to comment.