Moderator: igrr
I'm always use ESP8266-12E, nodemcu version board, in that case:
RED PCB 1.44' SPI 128*128 V1.1 (other display's may be different)
----------------------------------------------------------------------------------
VCC -> 3V3
GND -> GND
CS -> D0 (nodemcu) or (GPIO 16)
RESET -> 3V3
A0 -> D1(nodemcu) or (GPIO 5)
SDA -> D7(nodemcu) or (GPIO 13), actually this is MOSI
LED -> This is the + voltage for LED, in my case there's onboard resistor for limiting current so I've tied to +3V3
but I suggest to put a resistor of at list 120 Ohm, if display turn on white very bright maybe you need a 150 or 200 ohm, if display it's very dark maybe (but check carefully) you don't need any resistor. Take care about this or you will burn your backlight and you trash the display.
SCK -> D5(nodemcu) or (GPIO 14), actually this is SCLK
1) Must use at list the 2.0rc2 'staging' version, the stable version didn't work reliable with SPI.
2) I personally get 2 nodemcu board from a friend that has major problem with this library, one freezed almost instantly and the other after some min. After some testing I've solved by reflashing firmware (v1.3.0.2 AT Firmware.bin) with the ESP_DOWNLOAD_TOOL_V2.4.exe. This solved problems on both boards.
3) A user changed CS and RS pin, this is possible but ESP8266 has a lot of limitations on GPIO since many are 'shared', for example, the GPIO 15 that should be the standard SS pin for SPI should be tied to LOW when swithch in normal mode.
LOW for CS = device active so the display can potentially receive garbage during his initialization, I have tried it, it worked but I personally prefere use a different pin.
In short, before change pin please check what the choosed pin it's sharing and think if it's compatible if used as CS or DC.
Actually there's another reason to pay attention to select a specific GPIO pin, the ESP8266 will prolly crash if you use an illegal pin, like GPIO9 or GPIO10 on nodemcu.
I have 4 nodemcu board running from a week already and none has problems