You can copy the code in to the Web IDE directly and use it - compare the highlighted lines with the ones in your C code. Chances are the configuration is different.
I'm afraid the CC3000 isn't supported by default in nRF52 - GSM and ESP8266 should be though. If you want CC3000 you'd have to compile your own firmware.
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.
This is the JS fine for SSD1306: https://github.com/espruino/EspruinoDocsĀ/blob/master/devices/SSD1306.js#L33
You can copy the code in to the Web IDE directly and use it - compare the highlighted lines with the ones in your C code. Chances are the configuration is different.
I'm afraid the CC3000 isn't supported by default in nRF52 - GSM and ESP8266 should be though. If you want CC3000 you'd have to compile your own firmware.