# Cannot interface photon with OLED 128x64

**URL:** <https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488>\
**Category:** Troubleshooting\
**Created:** [June 3, 2017, 11:32am UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488 "2017-06-03T11:32:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarath0333](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sarath0333](https://community.particle.io/u/sarath0333)\
**Post date:** [June 3, 2017, 11:32am UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/1 "2017-06-03T11:32:21Z")

</div>

I tried to interface Photon with OLED display.  
The pins i have in OLED are  
VDD, GND, SDA, SCA, RES, DS, CS.  
i took the ssd1302 SPI example and dumped the code. No response on the display.  
So, I tried with i2c.  
SDA —\> D0  
SCL ----\> D1  
RES -----\> D4  
again no response on the display.  
can you help to make this work.

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [June 3, 2017, 4:57pm UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/2 "2017-06-03T16:57:26Z")

</div>

Seeing some actual code, along with images of how you’ve hooked it up might help.

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [June 3, 2017, 5:45pm UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/3 "2017-06-03T17:45:18Z")

</div>

Also a link to the display you are using.

---

<div class="post-metadata">

**Author:** ![sarath0333](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sarath0333](https://community.particle.io/u/sarath0333)\
**Post date:** [June 4, 2017, 10:29am UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/4 "2017-06-04T10:29:25Z")

</div>

![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/c/ca0818797b67e6b6641c630f4f8e245610b4328c.jpg)

This is the display i am refering to. LInk [http://www.rhydolabz.com/displays-c-88/096-oled-display-module-spii2c-128x64-7-pin-blue-p-2079.html](http://www.rhydolabz.com/displays-c-88/096-oled-display-module-spii2c-128x64-7-pin-blue-p-2079.html)  
Regarding Code. I just took the one which is there in example library available in Particle web dev IDE.  
[https://github.com/adafruit/Adafruit\_SSD1306/blob/master/examples/ssd1306\_128x64\_i2c/ssd1306\_128x64\_i2c.ino](https://github.com/adafruit/Adafruit_SSD1306/blob/master/examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino)

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [June 4, 2017, 10:48am UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/5 "2017-06-04T10:48:55Z")

</div>

If you've got the jumpers on the back set to default you need to use 4wire SPI otherwise you should do what's said on the linked page

> [@](#):
>
> For the I2C setup it demands a little bit of work on the module. Actually it was one of our customers who shared these simple configuration steps with us, start with resoldering the resistor from position R3 to R1 and then short the R8 resistor with some solder tin (0 Ohm resistor). The R6 and R7 pullup resistors are already soldered, nothing to do there. Once done, the module is ready for I2C communication! The CS Pin is not necessarily needed, so just connect it to GND. The DC Pin selects the address. For standard address wire it to GND. The RES-pin needs a low pulse at startup and high voltage during operation (as in SPI mode), a 100nF capacitor to GND and a 10k res to VCC would be ideal!

Andif you search the forum you'll find some threads dealing with the SSD1306 display and what to do to get [this lib](https://build.particle.io/libs/Adafruit_SSD1306/0.0.2) to work.

---

<div class="post-metadata">

**Author:** ![sarath0333](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sarath0333](https://community.particle.io/u/sarath0333)\
**Post date:** [June 4, 2017, 4:32pm UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/6 "2017-06-04T16:32:03Z")

</div>

Thanks.  
I will try. Will ask if i couldn’t make it.

---

<div class="post-metadata">

**Author:** ![sarath0333](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sarath0333](https://community.particle.io/u/sarath0333)\
**Post date:** [June 4, 2017, 4:46pm UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/7 "2017-06-04T16:46:01Z")

</div>

I made it through SPI.  
Sorry it was my fault … i didn’t read what is stated in that link.

 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/a/ad5f83a5553bbccb961a3d797a77c16334fe1a60.JPG)

---

<div class="post-metadata">

**Author:** ![miiguel](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@miiguel](https://community.particle.io/u/miiguel)\
**Post date:** [June 13, 2017, 6:49am UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/8 "2017-06-13T06:49:07Z")

</div>

How did you solved it? I mean, I don´t see the capacitor-resistor propposed by ScruffR… I’m having the same issue. Anybody could help me? I think the problem is about the RST pin

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [June 13, 2017, 11:15am UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/9 "2017-06-13T11:15:04Z")

</div>

@miiguel, OP has decided to go for SPI (in the above image obviously `SPI1`) after all and hence the I2C demands don’t apply here.

---

<div class="post-metadata">

**Author:** ![sarath0333](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sarath0333](https://community.particle.io/u/sarath0333)\
**Post date:** [July 13, 2017, 6:47am UTC](https://community.particle.io/t/cannot-interface-photon-with-oled-128x64/33488/10 "2017-07-13T06:47:39Z")

</div>

My link could help [http://sarathiblog.com/particle/particle-photon-interface-oled](http://sarathiblog.com/particle/particle-photon-interface-oled)
