Wiring NodeMCU to SSD1306 via I2C


I need some help to connect my NodeMCU (ESP8266) to an Adafruit SSD1306 128x32 I2C OLED display.
I want to use the default NodeMCU I2C pins, which are SDA=4(D2) and SCL=5(D1).

The Arduino library for this display has a compatibility note for the ESP8266:
"Change OLED_RESET to different pin if using default I2C pins D4/D5".

The default OLED RESET in the library example is:
#define OLED_RESET 4

So which NodeMCU pin do I connect to OLED RESET?
Can it be any digital output, or does it have to be RST?
Do I need additional pullups or capacitors to wire the OLED reset line?

And do I need to tell the SSD1306 library to use the default I2C pins D4/D5?


Ok, I figured this out by myself.
There is an ESP8266 board from Heltec, including the same OLED => Heltec WIFI Kit 8

Heltec uses GPIO16 (Pin8) as reset, but I think it can be any GPIO except for GPIO4 (SDA) and GPIO5(SCL).
No need for any pullups or capacitors, and the library uses GPIO4/5 by default.

#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 32
#define OLED_RESET  16  // Pin 8