Skip to content

Ferfoui/EmbeddedDisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmbeddedDisplay

This is a little project to display things through a small OLED display connected to an ESP32-S3-DevKitC-1 v1.1 board. The display is a 128x32 pixel monochrome OLED screen, and the project uses the ssd1306 library to control it.

The project is built using PlatformIO and the Arduino framework. Moreover, it has been built for a Chinese class presentation (about chinese electronics).

What does this project do?

This project allows the ESP32-S3 board to display chinese characters on an OLED screen. It supports Bluetooth (Low Energy) communication, enabling users to send commands or messages to the board. The board can display predefined chinese messages or user-provided (ASCII) text, and it uses the embedded RGB LED to indicate the system's status (e.g., initialization, connection, or errors).

How to build the project

  1. Install PlatformIO in your preferred IDE (e.g., CLion, VS Code).
  2. Clone this repository to your local machine.
  3. Open the project folder in your IDE.
  4. Connect your ESP32-S3 board to your computer via UART USB.
  5. Build and upload the project using the PlatformIO interface.

Configuration

Chinese characters integration

The project supports displaying Chinese characters on the OLED screen. Each character is represented as a 16x16 bitmap stored in program memory (PROGMEM). These bitmaps are mapped to their corresponding UTF-8 encoded characters in a dictionary (chineseDictionary).

To display a character, the program searches the dictionary for the UTF-8 string and retrieves the associated bitmap. If the character is not found, a placeholder bitmap is displayed instead. The drawChineseChar and drawChineseString functions handle rendering individual characters and strings, respectively, with proper spacing between characters.

Files chinese.h and chinese.cpp contain the character bitmaps and the functions to display them.

Libraries

About

Program to control a little screen with an ESP32

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages