Yes, the code you refer to is relevant for the general I2C communication, and it is also included in the "i2c" code module in the example from sorex (https://www.b4x.com/android/forum/t...ith-contrallable-fan-and-oled-display.136054/).
But there is a separate "ssd1306" code module which contains all specific commands for the SSD1306, and I'm wondering if there is something similar for the SH1106.