olikraus / u8glib

Arduino Monochrom Graphics Library for LCDs and OLEDs
https://github.com/olikraus/u8glib/wiki
Other
1.25k stars 314 forks source link

Using u8g2 library with a rotary encoder #510

Open BenGroll2ndAccount opened 4 years ago

BenGroll2ndAccount commented 4 years ago

Hello!

I wanted to use this library to control a 1,32" Sh1106 display, to display a menu, and have it controlled with a Rotary encoder.

Controlling the display works perfectly fine, but once I try to read the pin from the rotary encoder, and rotate the encoder, the pin outputs nothing, and the display freezes / obscures in some parts.

Ive tried reading the pin inside the loop function, and tried using an interrupt, both to no success.

Any tips on how to solve this eould be highly appreciated :)