wobblyhead hg > arduino > Potentiometer
comparison Potentiometer.h @ 1:c74204ea535c
added isStopped
| author | ark |
|---|---|
| date | 2017-01-25 23:01 +0100 |
| parents | 4c32c9d4b94f |
| children | a5e06e87f081 |
comparison
equal
deleted
inserted
replaced
| 0:4c32c9d4b94f | 1:c74204ea535c |
|---|---|
| 9 */ | 9 */ |
| 10 class Potentiometer { | 10 class Potentiometer { |
| 11 public: | 11 public: |
| 12 // dejittered pot value | 12 // dejittered pot value |
| 13 int value; | 13 int value; |
| 14 | |
| 15 // flag, if true the pot is not moving | |
| 16 bool isStopped; | |
| 14 | 17 |
| 15 /** | 18 /** |
| 16 create an uninitialised Potentiometer. | 19 create an uninitialised Potentiometer. |
| 17 setup() must be called after this to make it usable. | 20 setup() must be called after this to make it usable. |
| 18 */ | 21 */ |
| 19 Potentiometer(); | 22 Potentiometer(); |
| 20 | 23 |
| 21 /** | 24 /** |
| 22 setup pod instance. | 25 setup pot instance. |
| 23 @param {byte} pin input pin | 26 @param {byte} pin input pin |
| 24 */ | 27 */ |
| 25 void setup(byte pin); | 28 void setup(byte pin); |
| 26 | 29 |
| 27 /** | 30 /** |
