Lightweight Arduino Library for Rotary Encoder

I've made the ticker example today & haven't a chance to check it on the chip. Will do today. All the rest were tested many times.

It is a TEMPLATE class. You can use any type of variables. For float it will be like this:

RotaryEncoderAdvanced<float> encoder(PIN_A, PIN_B, BUTTON, 0.1, -12, 12); //0.1 step per click, minimum value -12, maximum value 12

For int16_t:

RotaryEncoderAdvanced<int16_t> encoder(PIN_A, PIN_B, BUTTON, 1000, -32767, 32767); //1000 step per click, minimum value -32767, maximum value 32767