alanesq / BasicOLEDMenu

A very simple menu system using an oled and rotary encoder
GNU General Public License v3.0
49 stars 10 forks source link

Some idea with a state version of a Rotary Encoder #5

Open karlstanger opened 3 months ago

karlstanger commented 3 months ago

Hi Alan,

searching for a good and easy to use menu system I found yours and I'm quite enthusiastic on it. I'm a total greenhorn on all this coding in C++ - so please excuse my poor knowledge on it.

I recently bought an Arduino Uno R4 and I'm fine with it. Now I'm putting together some code to run a menu using this Uno R4, an OLED 128x64 and a Rotary Encoder KY-040 using the u8g2 library. For the encoder I found a "state version of reading a KY-040, It offers full accuracy unlike other solutions" published by ownprox.

Source is: GitHub - ownprox/Rotary_Encoder_KY-040_Fixed: This is a state version of reading a KY-040 for Arduino, It offers full accuracy unlike other solutions.

Maybe you can include in your project a version which is running with that environment. For me personnally it would be great if you could provide some advice.

Kind regards Karl

biscuit-pixel commented 3 months ago

I dont see a reason for this, the encoder is debounced and pretty accurate for a menu system, as for the library, yes u8g2 is a bit efficient but that shouldnt take much time for u to rewrite...