-
Notifications
You must be signed in to change notification settings - Fork 7
Wemos Lolin board (ESP32 with 128x64 SSD1306 I2C OLED display)
This board is available on AliExpress and it is basically a clone of the D-duino-32, featuring the official Espressif Systems ESP-WROOM-32 module.
First, make sure to have installed the driver for the Silicon Labs CP210x USB to UART Bridge Virtual COM Port (VCP). The driver files for your OS are available at this link: https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
To install ESP32 core on Arduino follow the instructions on this page: https://github.com/espressif/arduino-esp32#installation-instructions
Download the display library in .zip for easier import on Arduino IDE: https://github.com/squix78/esp8266-oled-ssd1306
Download zip here: https://github.com/squix78/esp8266-oled-ssd1306/archive/master.zip and and use Sketch-> Include Library -> Add .ZIP Library
Use the settings from the product page on aliexpress: https://www.aliexpress.com/item/Lolin-ESP32-OLED-wemos-for-Arduino-ESP32-OLED-WiFi-Modules-Bluetooth-Dual-ESP-32-ESP-32S/32807531243.html
- board name WEMOS LOLIN32
- flash frequency 80Mhz (or 40Mhz to go slower)
- upload speed 921600 baud
- port (whichever your system chooses)
From the library examples load: File -> Examples -> ESP8266 and ESP32 Oled Driver for SSD1306 display -> SSD1306DrawingDemo
This ESP32 board requires the SSD1306 libraries to communicate with the OLED display, so make sure to include:
#include "SSD1306.h" // alias for #include "SSD1306Wire.h"
On this board the I2C communication pins to the OLED display are pin5 (SDA) and pin4 (SCL), so make sure to change the pins in the initialization:
SSD1306 display(0x3c, 5, 4);
Load program.
Success!
Where can I find examples of using WiFi module?