This is the scheamtic with an Arduino UNO but it works with any other Arduino. Connect the i2c pins of the display as below and then upload the example code.