-->
Page 1 of 2

OLED SPI .. nothing happens

PostPosted: Thu Mar 29, 2018 8:17 am
by Stickybit
Hi everyone

Just starting out with the NodeMCU board, and trying to use the 1.3" OLED display, but I'm, having trouble with getting it to work.

I've downloaded the esp8266-oled-ssd1306 library (for Arduino) and try to use the examples with no luck. I use the following connections and initialize the display using the SSD1306Spi function:

// D5 -> CLK
// D7 -> MOSI (DOUT)
// D0 -> RES
// D2 -> DC
// D8 -> CS
SSD1306Spi display(D0, D2, D8);

.. but nothing happens on the display. The loop in the code runs as it should, as I've added a LED routine to make sure that the code actually gets running.

A hint on what to do would be great. :)

Re: OLED SPI .. nothing happens

PostPosted: Thu Mar 29, 2018 7:08 pm
by rudy
The connections look correct. Maybe a faulty display? Do you have a different board you could test it with? Maybe a regular Arduino board?

Re: OLED SPI .. nothing happens

PostPosted: Fri Mar 30, 2018 6:04 am
by btidey
Maybe also post the top part of the example ino you are testing with. There are bits that need commenting out as well as using the spi.

I've used quite a few of these modules now and found them pretty reliable.

Re: OLED SPI .. nothing happens

PostPosted: Fri Mar 30, 2018 6:50 am
by QuickFix
I know the SSD1306 library works, but as far as I remember the default is I2C (the only mode I've used with these OLEDs).
You might want to have to set some values and/or (un) comment some things in code.