I do not have the OLED module that you are referring to. Can you tell me what the issue is? If the program is getting stuck, you can attach to the running target and check the call stack to see where the program is stuck. You can also debug the code.
Also, you can find the program to interface OLED 1306 in this thread - Re: How to interface an SSD 1306 OLED?
Hope it helps,
Rakshith M B