Here you can see how to connect the OLED to the arduino UNO (China Clone) and how to configure the Arduino IDE.
For Windowsusers the driver for the CH340 must be installed before.
I use the u8glib for it.
Links:
Driver CH340:
wch.cn / download / CH341SER_EXE.html
u8glib Version 1.18.1
bintray.com / olikraus / u8glib / Arduino