Hi.
I use latest u8glib library.Until i was used arduino uno, all was fine, but later i swaped all can bus shield with all oled(SH1106) wiring to 2560, and installed same code, but oled display not working.
I use 7,6,5,4 pins
U8GLIB_SH1106_128X64_2X u8g(6,5,7,4);
Mega 2560 and UNO have same virtual pin index in u8glib library?