This program allows you a quick start with the Wemos Lolin ESP32 OLED, which features a 0.96" display. Documentation online about the pinout is sketchy and, in some cases, wrong.
The important thing is that to communicate with the display, you need to use I2C, talking to the SSD1306 controller. The I2C address and I2C pins are:
#define I2C_DISPLAY_ADDR 0x3C
#define SDA 5
#define SCL 4
Here's a photo of a Lolin clone running the "Hello World" code:
Here's the pinout of the module for future reference:
Please also check this documentation: