|
Methods defined here:
- __init__(self)
- calibrate(self)
- Calibrate the object using the HDAPS calibration
- getAbsolute(self)
- Get absolute position
- getRelative(self, round=1)
- Get relative position
The parameter round is for rounding values
(p.e. round = 5 means every value x returned will be
x mod 5 = 0)
- getShock(self, sens=10)
- Wait until a shock in the X-values is noticed
(e.g. someone hit the notebook from the side)
Sens means sensitivity. Higher values means less
false-positives and more true-negatives.
This function will ignore anything if the laptop
if moved too much
Data and other attributes defined here:
- HIT_LEFT = 1
- HIT_RIGHT = -1
|