user4061: recently i bought this oled display .

http://www.wvshare.com/product/0.96inch-OLED-A.htm
how can i connect it with arduino . Driver Chip is SSD1306 . Supported Interface are 3-wire SPI, 4-wire SPI, I2C . it's can display two colors Yellow and Blue. 
i need some guidance on how to hook it up with arduino lets say using i2c protocol . and is there any existing library ? 
Note : on the wvshare website there's only code sample for STM32 Microcontrollers . 

user4061: it's working with u8glib.  but i am using  4-wire SPI. 
constructor for U8GLIB
U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9,8);

Pin configuration was
Arduino -   Oled Display
13 -    CLK
11 -    DIN (SI)
10 -    CS
9 - D/C (A0)
8 - RES

the reset pin is required. i used 3.3v  arduino pin for vcc .

4061: <p>recently i bought this oled display .</p>

<p><img src="https://i.stack.imgur.com/OEQgv.jpg" alt="enter image description here"></p>

<p><a href="http://www.wvshare.com/product/0.96inch-OLED-A.htm" rel="nofollow noreferrer">http://www.wvshare.com/product/0.96inch-OLED-A.htm</a></p>

<p>how can i connect it with arduino . Driver Chip is SSD1306 . Supported Interface are 3-wire SPI, 4-wire SPI, I2C . it's can display two colors Yellow and Blue. </p>

<p>i need some guidance on how to hook it up with arduino lets say using i2c protocol . and is there any existing library ? </p>

<p>Note : on the wvshare website there's only code sample for STM32 Microcontrollers . </p>
 4061: <p>it's working with u8glib.  but i am using  4-wire SPI. </p>

<p>constructor for U8GLIB</p>

<pre><code>U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9,8);
</code></pre>

<p>Pin configuration was</p>

<pre><code>Arduino -   Oled Display
13 -    CLK
11 -    DIN (SI)
10 -    CS
9 - D/C (A0)
8 - RES
</code></pre>

<p>the reset pin is required. i used 3.3v  arduino pin for vcc .</p>
