The code there is ok for setting up I2C on the MDBT42Q, but without knowing anything about your OLED it's hard to help you.
Espruino has some libraries to connect to common OLED displays though, so if you have one of them ( https://www.espruino.com/Search?kw=oled ) then all you have to do is use the instructions and code there
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The code there is ok for setting up I2C on the MDBT42Q, but without knowing anything about your OLED it's hard to help you.
Espruino has some libraries to connect to common OLED displays though, so if you have one of them ( https://www.espruino.com/Search?kw=oled ) then all you have to do is use the instructions and code there