wobblyhead hg > arduino > Button
comparison Button.h @ 2:b76b999b88c7 default tip
fix flank detection
| author | ark |
|---|---|
| date | 2017-01-31 00:07 +0100 |
| parents | 284066a427c8 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:284066a427c8 | 2:b76b999b88c7 |
|---|---|
| 56 void update(unsigned long ms); | 56 void update(unsigned long ms); |
| 57 | 57 |
| 58 /** bounce threshold in miliseconds. state changes are ignored for that | 58 /** bounce threshold in miliseconds. state changes are ignored for that |
| 59 * long after a change. | 59 * long after a change. |
| 60 */ | 60 */ |
| 61 const unsigned long BOUNCE_THRESHOLD = 100; | 61 const unsigned long BOUNCE_THRESHOLD = 150; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 byte pin; | 64 byte pin; |
| 65 bool isPullup; | 65 bool isPullup; |
| 66 | 66 |
