#include <Encoders.hh>
Public Member Functions | |
| RangeEncoder (int _max=127, int _min=0, const char *_name=NULL, int init=0, encoder_handle_t _handler=NULL) | |
| void | initRangeEncoder (int _max=128, int _min=0, const char *_name=NULL, int init=0, encoder_handle_t _handler=NULL) |
| virtual int | update (encoder_t *enc) |
| RangeEncoder (uint8_t _max=127, uint8_t _min=0) | |
| void | handle (uint8_t val) |
| void | update (encoder_t *enc) |
Public Attributes | |
| int | min |
| int | max |
| uint8_t | min |
| uint8_t | max |
Encoder with minimum and maximum value.
| RangeEncoder::RangeEncoder | ( | uint8_t | _max = 127, |
|
| uint8_t | _min = 0 | |||
| ) | [inline] |
| void RangeEncoder::handle | ( | uint8_t | val | ) | [inline, virtual] |
Reimplemented from Encoder.
Reimplemented in CCEncoder, and TempoEncoder.
| void RangeEncoder::update | ( | encoder_t * | enc | ) | [virtual] |
Updates the value of an encoder according to the movements of the hardware (recorded in the encoder_t structure). The default handler adds the normal increment, and handles pressing down the encoder according to pressmode and fastmode.
Reimplemented from Encoder.
| uint8_t RangeEncoder::max |
| uint8_t RangeEncoder::min |
1.6.1