# Adafruit SSD1306 \[SOLVED\]

**URL:** <https://community.particle.io/t/adafruit-ssd1306-solved/15175>\
**Category:** Libraries\
**Created:** [September 7, 2015, 12:20am UTC](https://community.particle.io/t/adafruit-ssd1306-solved/15175 "2015-09-07T00:20:40Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [September 8, 2015, 3:27am UTC](https://community.particle.io/t/adafruit-ssd1306-solved/15175/8 "2015-09-08T03:27:25Z")

</div>

The Adafruit\_SSD1306 library that can be found in Particle Build (Web IDE) does work for the display coming with the kit.

If building in Particle Build (Web IDE) you need to change the includes in the demos to

```cpp
// e.g. ssd1306-128x64-spi.ino

#include "Adafruit_SSD1306/Adafruit_GFX.h"
#include "Adafruit_SSD1306/Adafruit_SSD1306.h"

```

If building with Particle Dev or CLI just leave them as they are

For all IDEs do the wiring like this

```auto
// use hardware SPI
// OLED_D0 -> A3 (SPI CLK)
// OLED_D1 -> A5 (SPI MOSI)
#define OLED_DC D3
#define OLED_CS D4
#define OLED_RESET D5

```

and you need to remove the function (which is some sort of residue of former firmware needs ;-))

```auto
int random(int maxRand) {
    return rand() % maxRand;
}

```

---

_[View the full topic](https://community.particle.io/t/adafruit-ssd1306-solved/15175)._
