# SparkFun Flexible Grayscale OLED Breakout - 1.81" Arduino Uno Rev3

**URL:** <https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960>\
**Category:** Displays\
**Created:** [April 12, 2021, 1:07pm UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960 "2021-04-12T13:07:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![donskogvito86](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@donskogvito86](https://community.sparkfun.com/u/donskogvito86)\
**Post date:** [April 12, 2021, 1:07pm UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960/1 "2021-04-12T13:07:02Z")

</div>

Hello, I recently purchased the SparkFun Flexible Grayscale OLED Breakout - 1.81". However, following the hookup table guide for Arduino Uno, I can’t display on at all. Is this tested and verified for the Uno Rev3?

Product page:

[https://www.sparkfun.com/products/14606 … 1d7c5780f3](https://www.sparkfun.com/products/14606#comment-60742ea77ac0c01d7c5780f3)

Reference hookup table guide:

[https://learn.sparkfun.com/tutorials/fl … 1614721076](https://learn.sparkfun.com/tutorials/flexible-grayscale-oled-hookup-guide?_ga=2.220030746.2024284547.1618222872-614248905.1614721076)

Any help would be very much appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![TS-Chris](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-chris/32/6057_2.png) [@TS-Chris](https://community.sparkfun.com/u/TS-Chris)\
**Post date:** [April 12, 2021, 3:13pm UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960/2 "2021-04-12T15:13:09Z")

</div>

These have been tested on an Uno and should work for basic text on the Uno.

Can you send a photo showing the top and bottom of your board and a photo showing how you have things connected to the Uno?

---

<div class="post-metadata">

**Author:** ![donskogvito86](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@donskogvito86](https://community.sparkfun.com/u/donskogvito86)\
**Post date:** [April 12, 2021, 3:52pm UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960/3 "2021-04-12T15:52:44Z")

</div>

Thank you for your quick reply.

Right now the breakout board is standing on headers on a bread board connected to the UNO. I haven’t soldered anything yet.

Connections is wired up following your hookup reference for Arduino. Im using the library from the guide, e.g the Hello World program. I think it is version 1.4.

Images attached showing connections and wiring from the breakoutboard to the Arduino.

[[![](https://canada1.discourse-cdn.com/sparkfun/original/2X/0/090360fadf3d81a4c72fb32afee134b0e42fdba1.jpeg) ![](https://canada1.discourse-cdn.com/sparkfun/original/2X/0/090360fadf3d81a4c72fb32afee134b0e42fdba1.jpeg)](https://ibb.co/TRzZrZk) [[![](https://canada1.discourse-cdn.com/sparkfun/original/2X/b/b371cec5f9b269bd2b1b3c4ad8c0a077decf2022.jpeg) ![](https://canada1.discourse-cdn.com/sparkfun/original/2X/b/b371cec5f9b269bd2b1b3c4ad8c0a077decf2022.jpeg)](https://ibb.co/6rGKwqb)]([20210412-174022-compress84 hosted at ImgBB — ImgBB](https://ibb.co/6rGKwqb))]([20210412-173954-compress68 hosted at ImgBB — ImgBB](https://ibb.co/TRzZrZk))

---

<div class="post-metadata">

**Author:** ![TS-Chris](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-chris/32/6057_2.png) [@TS-Chris](https://community.sparkfun.com/u/TS-Chris)\
**Post date:** [April 12, 2021, 4:30pm UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960/4 "2021-04-12T16:30:53Z")

</div>

Are your headers soldered to the display board or are they just stuck through the holes?

---

<div class="post-metadata">

**Author:** ![donskogvito86](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@donskogvito86](https://community.sparkfun.com/u/donskogvito86)\
**Post date:** [April 12, 2021, 4:36pm UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960/5 "2021-04-12T16:36:35Z")

</div>

They are just stuck through the holes. I’m fairly new to electronics and I realize this might be the issue. I will solder tonight and return back with the result. I assume this is what you would recommend as well?

---

<div class="post-metadata">

**Author:** ![TS-Chris](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-chris/32/6057_2.png) [@TS-Chris](https://community.sparkfun.com/u/TS-Chris)\
**Post date:** [April 12, 2021, 4:38pm UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960/6 "2021-04-12T16:38:39Z")

</div>

Yeah, they need to be soldered so that you get a good electrical connection between the pins and the board. That should clear up your issue. 🙂

---

<div class="post-metadata">

**Author:** ![donskogvito86](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@donskogvito86](https://community.sparkfun.com/u/donskogvito86)\
**Post date:** [April 19, 2021, 9:09am UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960/7 "2021-04-19T09:09:17Z")

</div>

I just wanted to let you know that once I soldered everything it worked.

[[![](https://canada1.discourse-cdn.com/sparkfun/original/2X/5/53dd35e88f1e42b915f39308768a18c10647b93f.jpeg) ![](https://canada1.discourse-cdn.com/sparkfun/original/2X/5/53dd35e88f1e42b915f39308768a18c10647b93f.jpeg)](https://ibb.co/5Gb4rtR)

However, only a small part of the screen has full brightness.

[[![](https://canada1.discourse-cdn.com/sparkfun/original/2X/2/2dcaf1d6f8fd17a40f8de5149d146b44cc148641.jpeg) ![](https://canada1.discourse-cdn.com/sparkfun/original/2X/2/2dcaf1d6f8fd17a40f8de5149d146b44cc148641.jpeg)](https://ibb.co/QCHyLw1)

Perhaps not related but when I pass a value to the screen counting from 0 to 1 suddenly this happens.

[[![](https://canada1.discourse-cdn.com/sparkfun/original/2X/c/c42605422845bc196e673eca695bee6fda60c92c.jpeg) ![](https://canada1.discourse-cdn.com/sparkfun/original/2X/c/c42605422845bc196e673eca695bee6fda60c92c.jpeg)](https://ibb.co/HxTP0P5)

[[![](https://canada1.discourse-cdn.com/sparkfun/original/2X/d/d6c145892a08a3794eb74e2c8b1683194c66b14a.jpeg) ![](https://canada1.discourse-cdn.com/sparkfun/original/2X/d/d6c145892a08a3794eb74e2c8b1683194c66b14a.jpeg)](https://ibb.co/vBcbB3b)

Any advice or suggestions that can help me on my way is highly appreciated.

Here’s my code:

```auto
/*
    Program for the 1960s Panco of Norway table top Mini-Match.
*/

//Sparkfun Flexible Grayscale Oled was the only display to fit the narrow space of the game.
#include <SSD1320_OLED.h>

//Initialize the display with the follow pin connections
SSD1320 flexibleOLED(10, 9); //10 = CS, 9 = RES

//Variables for the two goals
int Home;
int Away;

#define LEDPIN 13

//Pins for data connections for the breakbeam sensors
#define SENSORPIN 7

//Initialize and define states for the breakbeam sensors
int sensorState = 0, lastState = 0;

void setup()
{

  //Initializing Arduino's board LED for output.
  pinMode(LEDPIN, OUTPUT);

  //Initializing pin for input from the breakbeam sensor.
  pinMode(SENSORPIN, INPUT);

  //Activate the pullupp resistor for this pin to make the two sensor states clear for Arduino.
  digitalWrite(SENSORPIN, HIGH);

  //Start value for goals.
  Home = 0;
  Away = 0;

  flexibleOLED.begin(160, 32); //Display is 160 wide, 32 high

  flexibleOLED.clearDisplay(); //Clear display and buffer

  flexibleOLED.setFontType(1); //Large font
  flexibleOLED.setCursor(32, 6);
  flexibleOLED.print("MINI-MATCH");

  flexibleOLED.display();

  delay(2000);

  flexibleOLED.clearDisplay(); //Clear display and buffer
}

void loop()
{

  // Read and save states of the sensor
  sensorState = digitalRead(SENSORPIN);

  // Show the goal values on the display
  flexibleOLED.setFontType(2); //7-segment display style characters, 10x16-pixels each.
  flexibleOLED.setCursor(15, 8);
  flexibleOLED.print(Home % 10);
  flexibleOLED.display();
  
  if (sensorState == LOW) {
    digitalWrite(LEDPIN, HIGH);
  }
  else {
    digitalWrite(LEDPIN, LOW);
  }

  if (!sensorState && lastState) {
    Serial.println("1 Broken");
    Home = Home + 1;
  }

  lastState = sensorState;
}

```

]([https://ibb.co/vBcbB3b](https://ibb.co/vBcbB3b))]([https://ibb.co/HxTP0P5](https://ibb.co/HxTP0P5))]([2021-04-19-10-56-52 hosted at ImgBB — ImgBB](https://ibb.co/QCHyLw1))]([2021-04-19-10-58-18 hosted at ImgBB — ImgBB](https://ibb.co/5Gb4rtR))

---

<div class="post-metadata">

**Author:** ![donskogvito86](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@donskogvito86](https://community.sparkfun.com/u/donskogvito86)\
**Post date:** [April 19, 2021, 12:07pm UTC](https://community.sparkfun.com/t/sparkfun-flexible-grayscale-oled-breakout-1-81-arduino-uno-rev3/41960/8 "2021-04-19T12:07:00Z")

</div>

For some reason adding the ```  
flexibleOLED.setContrast(255);

```to

The issue with only a small area of the screen is lit persists unfortunately :cry:
```
