                   "Built " __DATE__ "\n"
                   __TIME__ "\n");
     display.display();
-    hid.waitAnyKey();
+    hid->waitAnyKey();
     return __;
 }
 
 void onMenuLoop(void){
     displayBatteryStatus();
     display.invertDisplay(display_invert);
-    pano.motorsEnable(motors_enable);
+    pano->motorsEnable(motors_enable);
 }
 
 void loop() {
-    displayMenu(menu, display, DISPLAY_ROWS, hid, onMenuLoop);
-}
+    displayMenu(menu, display, DISPLAY_ROWS, *hid, onMenuLoop);
+}

#define TEXT_SIZE 1
#define DISPLAY_ROWS SSD1306_LCDHEIGHT/8/TEXT_SIZE
#define DISPLAY_COLS SSD1306_LCDWIDTH/6/TEXT_SIZE
static Display display(OLED_RESET);

// Camera shutter controls
#define CAMERA_FOCUS 0
#define CAMERA_SHUTTER 1
static Camera camera(CAMERA_FOCUS, CAMERA_SHUTTER);

// Battery measurement settings
#if defined(__AVR__)

                displayArrows();
            }
        }
        running = running && pano->next();
    };

    running = false;
    displayPanoStatus();

    pano->end();

    hid->waitAnyKey();
}

/*
