Anyone can show me a simple sketch code on how I can use 2 pushbuttons to print numbers on an OLED. I bascially want button1 when pressed to show the number 1 on the OLED, and the number 1 will clear after 10 sec. if no buttons are pressed, but if in those 10 secs button1 or button2 is pressed it will restart the 10sec clock and so we have 11 or 12, since button2 press makes a 2 on the OLED to the right of the 1. So there are only 1 or 2 digits possible, it can't be 111 or 222, just 11 or 22 or 1 or 2.

I'm using this library: GitHub - olikraus/u8glib: Arduino Monochrom Graphics Library for LCDs and OLEDs

with it set to this: U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NONE); // I2C / TWI

I'm also using an arduino nano.