Re: Can iUse Gyroscope and Rotary Encoder with ESP8266?
Posted: Tue May 11, 2021 6:52 am
My rotary encoder button project https://github.com/roberttidey/RotaryEncoderButton allows a rotary encoder to be used to control various functions.
Of relevance here is the RotaryEncoderArray library it uses for accessing one or more encoders. The library uses interrupts and gives reliable output by using a state machine that deals with any bounce uncertainty in the switches as they rotate. It allows a maximum, minimum and step value to be set for each encoder. The GPIO pins used are set when an encoder is initialised.
Of relevance here is the RotaryEncoderArray library it uses for accessing one or more encoders. The library uses interrupts and gives reliable output by using a state machine that deals with any bounce uncertainty in the switches as they rotate. It allows a maximum, minimum and step value to be set for each encoder. The GPIO pins used are set when an encoder is initialised.