I have tried running the example code provided to get the OLED to work but to no avail.

I have two OLED displays with me.

They are not connected serially.

I am using SPI interface.

These are the reference codes I used to get the OLED to work.



The wiring is given in the header for Link-2 and in the on-site wiring diagram for Link-1.

I was briefly able to get the OLED working using Link-2 and to test reliability I unhooked the device from the breadboard and as soon as I reloaded the code onto the Arduino. It stopped working. After running 50 consecutive Restart->Re-flash->Check Output cycles the OLED is still unresponsive.

  • The wiring on Link1 does not match the sketch pin assignments on Link2. – hcheung Dec 9 '20 at 7:48
  • @hcheung I compensated for that. – Shridhar Sharma Dec 9 '20 at 9:16
  • 1
    If you want people to help you, provide your actual code and connection diagram, not links to external sites, not such words as "no avail", "compensated for that", as it doesn't describe the actual problem(s) you are facing. – hcheung Dec 9 '20 at 9:36
  • The Adafruit SSD1306 library allocates a full buffer (screen width*height/8) per instance. If you have a 128*64 screen that's 1k. Two would be 2k - can't work on an ATmega328 – Mat Dec 9 '20 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.