You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @brief Responsible for detaching interrupts and clearing the loop timer
63
-
*
64
57
*/
65
58
~RotaryEncoder();
66
59
@@ -73,7 +66,7 @@ class RotaryEncoder {
73
66
* HAS_PULLUP if your encoder is a module that has pull-up resistors, (internal pull-ups will not be used);
74
67
* SW_FLOAT your encoder is a module that has pull-up resistors, but the resistor for the switch is missing (internal pull-up will be used for switch input only)
75
68
*/
76
-
voidsetEncoderType( EncoderType type );
69
+
voidsetEncoderType( Type type );
77
70
78
71
/**
79
72
* @brief Set the minimum and maximum values that the encoder will return.
@@ -147,21 +140,18 @@ class RotaryEncoder {
147
140
* @brief Sets up the GPIO pins specified in the constructor and attaches the ISR callback for the encoder.
148
141
*
149
142
* @note Call this in `setup()` after other "set" methods.
150
-
*
151
143
*/
152
144
voidbegin( bool useTimer = true );
153
145
154
146
/**
155
147
* @brief Enables the encoder knob and pushbutton if `disable()` was previously used.
156
-
*
157
148
*/
158
149
voidenable();
159
150
160
151
/**
161
152
* @brief Disables the encoder knob and pushbutton.
162
153
*
163
154
* Knob rotation and button presses will have no effect until after `enable()` is called
164
-
*
165
155
*/
166
156
voiddisable();
167
157
@@ -214,26 +204,16 @@ class RotaryEncoder {
214
204
* @note This will try to set the value to 0, but if the minimum and maximum configured
215
205
* by `setBoundaries()` does not include 0, then the minimum or maximum will be
216
206
* used instead
217
-
*
218
207
*/
219
208
voidresetEncoderValue() { setEncoderValue( 0 ); }
220
209
221
-
/**
222
-
* @brief Synchronizes the encoder value and button state from ISRs.
223
-
*
224
-
* Runs on a timer and calls `encoderChanged()` and `buttonPressed()` to determine
225
-
* if user-specified callbacks should be run.
226
-
*
227
-
* This would normally be called in userspace `loop()`, but we're using the `loopTimer` instead.
0 commit comments