ESP32-OLED
Aim:
This experiment shows how to display the message on
OLED using ESP32-Microcontroller.
Description:
To display message on OLED screen.
Hardware
required:
ESP32-Microcontroller Development board
Pin connection:
Pin Mapping:
OLED
|
ESP32
|
5V
|
5V
|
SCL
|
IO22
|
SDA
|
IO21
|
Procedure:
1.
The above pin connection shows how to interface OLED
with ESP32 board.
2.
Do the connections as shown in the pin diagram and
pin mapping.
3.
Connect the USB cable to the board.
4.
Open Arduino IDE .Select DOIT ESP32 DEVKIT V1in
boards and select COM port.
5.
Verify the program and Upload it.
6. Now you can see the output displaying the message on OLED of ESP32 microcontroller board.
Program:
#include<Wire.h> #include"SSD1306.h"
/* SDA=21,SCL=22 */
SSD1306 display(0x3c,21,22); void setup(void)
{
display.init();
/* display message in OLED */ display.drawString(0,0,"RDL
Technologies PVT. LTD."); display.display();
}
void loop(void)
{
}
No comments:
Post a Comment