This project shows how to interface Arduino with SSD1306 OLED in both SPI and I2C modes. It also shows how to simulate it using Proteus.