Page 1 of 1
0.96 oled SPI configuration
Posted: 30 Oct 2017, 21:18
by albertobonati
Hi.
In hardware settings I read:
Init SPI: (Note : Chip Select (CS) config must be done in the plugin)
I know how connet I2C oled, but what about SPI connection to ESP?
I have 6 pins SPI oled:
GND
VCC
SCL:CLK clock
SDA : MOSI data
RST: MOSI data
D/C data/command
thanks
Alberto
Re: 0.96 oled SPI configuration
Posted: 30 Oct 2017, 22:40
by vader
SDA and SCL are I2C. MISO and MOSI are described under "Hardware --> SPI Interface" where to connect to.
Re: 0.96 oled SPI configuration
Posted: 31 Oct 2017, 23:04
by albertobonati
OK... I see this in MEGA version:
Note: CLK=GPIO-14 (D5), MISO=GPIO-12 (D6), MOSI=GPIO-13 (D7)
Note: Chip Select (CS) config must be done in the plugin
But what about CS? Where I have to connect this?
Regards
Alberto
Re: 0.96 oled SPI configuration
Posted: 31 Oct 2017, 23:53
by TD-er
Are you really sure you have the SPI version?
You describe pins for I2C (SDA/SCL)
SPI is using a clk, MISO & MOSI pins and a chip-select line.
I thought the SPI versions had 7 pins:
https://www.banggood.com/7Pin-0_96-Inch ... ?rmmds=buy
Re: 0.96 oled SPI configuration
Posted: 01 Nov 2017, 00:14
by vader
There is only 1 Pin left: D/C. The "C" could be Chip Select!? Try it. No risk, no fun.

Re: 0.96 oled SPI configuration
Posted: 01 Nov 2017, 00:21
by vader
Re: 0.96 oled SPI configuration
Posted: 01 Nov 2017, 08:59
by albertobonati
Well..I have 7 pin version and 6 pins version.
In 7 pin version it's possible to set I2C or SPI interface changing SMD resistor position, I used them but only in I2C mode.
In 6 pins version you can't do this (I think..) and it's only SPI interface, although pin name is SDA/SCL.
My 6 pin version is exactly this:
http://www.rhydolabz.com/displays-c-88/ ... -2260.html
I tryed in I2C mode but don't work.
So I tryed to use it in SPI mode with ESP8266, with Arduino board it work fine but I can see in sketch pin assignament.
In ESP Easy normal version, in hardware page I foun only this:
Note: Chip Select (CS) config must be done in the plugin
In MEGA version a further help:
Note: CLK=GPIO-14 (D5), MISO=GPIO-12 (D6), MOSI=GPIO-13 (D7)
Note: Chip Select (CS) config must be done in the plugin
So I know how to connect SCL, SDA, RST (referring pin names in my board) but don't work, maybe I have to connect DC pin too, but where?
I don't find documentation about this....
Best regards
Alberto
Re: 0.96 oled SPI configuration
Posted: 01 Nov 2017, 09:52
by vader
Have you read the item description from my link above? The solution stand there (you are in advantage if you had read it!)
.....
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!
.....
Re: 0.96 oled SPI configuration
Posted: 01 Nov 2017, 10:46
by albertobonati
Sorry, I did a mistake... this is my module:
https://www.amazon.it/gp/product/B074M9 ... UTF8&psc=1
It look like your at front side, but not at back side...
specifications:
0,96 pollici OLED Display - alleu d9011 2pcs 128 X 64 Pixel OLED Display per Arduino, Raspberry Pi e microcontroller
Caratteristiche dell' articolo:
Non richiede l' unità può essere anche di retroilluminazione, il display luminoso
Alta risoluzione: 128 X 64
Angolo di visione: più di 160 gradi
Supporta molti Control chip: pienamente compatibile con Arduino, 51 Series, MSP430 Series, STM32/2, CSR IC, ecc.
Basso consumo energetico ultra: Full Screen Lit 0,08 W
Tensione: V ~ 5 V DC
Temperatura di funzionamento: -20 ~ 30 gradi Celsius a 70 gradi Celsius
Modulo Dimensioni: 27,0 mm x 27,0 mm x 4.1 mm
Interfaccia SPI
Driver IC: SSD1306
Package:
2 X 0,96 OLED
I'ts only a SPI device...and I want to use it with this interface if possible.
Regards
Alberto
Re: 0.96 oled SPI configuration
Posted: 01 Nov 2017, 12:11
by vader
Re: 0.96 oled SPI configuration
Posted: 01 Nov 2017, 13:45
by albertobonati
Thanks, but on my arduino it work fine...
I need a solution for ESP8266 and ESP Easy...
Regards
Alberto
Re: 0.96 oled SPI configuration
Posted: 01 Nov 2017, 17:43
by Drum
I do know the ESP8266 will support SPI displays. I have a adafruit 2.4 inch TFT featherwing and it works with the examples provided. Getting it to wok on ESPEasy is another thing all together. I have been working on it, but I am not sure if this is possible for me. Time will tell....