commit | fae148b3a641df47ec0be44206c48e7c8dd38873 | [log] [tgz] |
---|---|---|
author | Borjan Tchakaloff <borjan@fairphone.com> | Wed Aug 03 12:53:02 2016 +0200 |
committer | Maarten Derks <maarten@fairphone.com> | Wed Aug 03 13:41:05 2016 +0200 |
tree | 4499d0c3dd4df52c6e19b86898965ef597f4910b | |
parent | 0feba9d4cedccd57483ffd9a32fc4a146dbea77e [diff] |
Improve read() method to read several times the P-sensor value read() - by default - reads READ_N_TIMES=3 sensor values and compute the mean of the in-range values. Because read() now includes a specific delay, no call to sleep{} are required when calling read().