That's a project that I found in ug82lib's example called LCDML_040_u8glib and let you work with serial monitor, buttons, encoder and keypad, just need change de pins and work in the code.
links:
https://github.com/Jomelo/LCDMenuLib2
https://github.com/olikraus/u8g2
hope can help