This was built on an ESP8266 microcontroller, but should work on any arduino-compatible board provided there's enough pins of the right type. the rotary encoder A/B pin is connected to pin D1 and D2 ...
static size_t rmt_encode_led_strip(rmt_encoder_t *encoder, rmt_channel_handle_t channel, const void *primary_data, size_t data_size, rmt_encode_state_t *ret_state) ...
Encoders are a vital component in many applications that require motion control and feedback information. Whether a system’s requirement is speed, direction, or distance, an encoder produces control ...