This part of the project is responsible for rendering the live feed from the Ring doorbell on the ESP32's TFT display. The display gathers individual frames from the ESP-proxy server and renders them. Due to the limited heap space, a compressed JPEG format is used.
The esp-display
component uses PlatformIO for development and deployment.
PlatformIO is an open-source ecosystem for IoT development. It supports multiple development platforms, including the ESP32.
-
Installation:
- You can install PlatformIO as an extension in Visual Studio Code or download it from the PlatformIO website.
-
Project Initialization:
- Initialize the project by navigating to the
esp-display
folder and opening it with PlatformIO.
- Initialize the project by navigating to the
The WiFi details and server IP/port need to be configured for the ESP32 to connect to the network and the proxy server. These details are stored in src/secrets.h
.
-
Creating
secrets.h
:- Create a file named
secrets.h
in thesrc
directory of theesp-display
project.
- Create a file named
-
Configuring WiFi and Server Details:
- Add your WiFi credentials and server IP/port details to
secrets.h
as follows:
- Add your WiFi credentials and server IP/port details to
// src/secrets.h
#ifndef SECRETS_H
#define SECRETS_H
// WiFi credentials
#define SSID_NAME "SSID"
#define SSID_PASS "SSID_PASS"
// Server details
#define SERVER_ADDRESS "1.2.3.4"
#define SERVER_PORT 5005
#endif // SECRETS_H