     display.clearDisplay();
     display.setCursor(0,0);
 
-    menu.render(display, rows);
+    menu.render(display, DISPLAY_ROWS);
     display.display();
 }
 


void loop() {
    if (!running){
        int event = joystick.read();
        if (event){
            handleEvent(event);

// and pick SSD1306_128_64 or SSD1306_128_32 that matches display type.
#define DISPLAY_I2C_ADDRESS 0x3C
#define OLED_RESET 4
#define DISPLAY_ROWS SSD1306_LCDHEIGHT/8

#define JOYSTICK_X A2
#define JOYSTICK_Y A3
