# devkit-hueleaf_base **Repository Path**: yshan0216/devkit-hueleaf_base ## Basic Information - **Project Name**: devkit-hueleaf_base - **Description**: 彩叶(基础版):基于 ESP32-C5 的 3.7 英寸六色墨水屏开发套件,支持双频 Wi-Fi 6 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2026-11-29 - **Last Updated**: 2026-11-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HueLeaf Base OSPTEK E-Paper Development Kit · ESP32-C5 · 3.7″ 6-Color E-Paper · Dual-band Wi-Fi 6

OSPTEK HueLeaf E-Paper Development Kit, Base Edition

MCU PMU Display Wi-Fi RTC

简体中文  |  English

## Overview HueLeaf is an e-paper development kit by OSPTEK. This repository covers its Base Edition. The Base Edition is built around the ESP32-C5 and features a 3.7-inch six-color e-paper display capable of showing black, white, red, yellow, blue and green. The board integrates an AXP2101 power management IC, a PCF8563 RTC, an MSA321 accelerometer, 4 MB of Flash and a microSD slot, while the ESP32-C5 provides dual-band 2.4 GHz / 5 GHz Wi-Fi 6. It comes in a badge-style enclosure, so it can be worn as an e-badge or placed on a desk. E-paper only draws power while refreshing; combined with the AXP2101's Li-ion battery management and the PCF8563's timed wake-up, the device can sleep for long periods and refresh on demand, making it well suited to long-term battery operation. This repository is intended for secondary development and provides ESP-IDF-based examples, factory firmware and hardware files. ### Typical Use Cases - E-badges and conference name tags - Desk calendars and weather clocks - Info dashboards and notifications - Electronic shelf labels and door signs ## Specifications | Item | Spec | | :--- | :--- | | MCU | ESP32-C5 (ESP32-C5HF4) | | Display | 3.7″ 6-color e-paper EPD037A02, 480 × 720 (black, white, red, yellow, blue, green) | | Wireless | Dual-band Wi-Fi 6, 2.4 / 5 GHz | | PMU | AXP2101 | | RTC | PCF8563 | | Accelerometer | MSA321 | | Storage | 4 MB Flash, microSD | | USB | Type-C, ESP32-C5 native USB | | Buttons | Reset, Power, BOOT | | LEDs | Charging (blue), Power on (green) | Full schematic: [hardware/HueLeaf_Base_Schematic_V1.0.pdf](hardware/HueLeaf_Base_Schematic_V1.0.pdf). Component placement: [hardware/HueLeaf_Base_Placement.pdf](hardware/HueLeaf_Base_Placement.pdf). ### Pin Assignment | Function | GPIO | Notes | | :--- | :--- | :--- | | SPI MOSI | 0 | Shared by e-paper and TF card | | SPI CLK | 1 | Shared by e-paper and TF card | | SPI MISO | 9 | TF card | | E-paper CS / DC / RST / BUSY | 5 / 6 / 7 / 8 | | | TF card CS | 10 | | | I2C SDA / SCL | 2 / 3 | Shared by AXP2101, PCF8563, MSA321 | | Accelerometer interrupt | 4 | MSA321 | | RTC interrupt | 23 | PCF8563 | | PMIC interrupt | 25 | AXP2101 | | BOOT button | 28 | Active low | | I2C Device | Address | | :--- | :--- | | AXP2101 | `0x34` | | PCF8563 | `0x51` | | MSA321 | `0x62` | ## Contents | Directory | Contents | | :--- | :--- | | [`examples/`](examples) | Examples and factory firmware | | [`hardware/`](hardware) | Schematic, component placement | ## Development Environment Examples are developed with [ESP-IDF](https://github.com/espressif/esp-idf). ## Examples ### 3.7einkDvb Web Image Upload Open a web page on your phone or computer and send images or text to the e-paper display. Source: [`examples/3.7einkDvb`](examples/3.7einkDvb).

Device photo

#### Factory Firmware Features The factory firmware is built from this example and supports: | Category | Features | | :--- | :--- | | Display | Upload and refresh images, clear and restore the screen; BOOT button rotates the picture by 90°, Power button single press toggles a full white screen | | Refresh modes | Six-color dithering, black-and-white dithering | | Network | Hotspot (AP) provisioning and router (STA) connection; dual-band 2.4 GHz / 5 GHz Wi-Fi 6 | | Charging | AXP2101 fuel gauge with battery capacity self-learning; set the battery's rated capacity to adjust charging current at 0.2C / 0.5C / 1C, up to 1000 mA | | Power on / off | Hold Power for 0.5 s to power on, 4 s to power off | | TF card | Driver built in; initialization supported | | Accelerometer | MSA321 driver built in; initialization and readout supported | | RTC | PCF8563 driver built in; initialization, read and write supported | > [!NOTE] > 48 / 64 / 256 / 384 / 512-color global refresh (about 23 s), partial refresh (about 23 s), fast refresh (about 3 s) and partial fast refresh (about 2 s) are not yet available and will come in later releases. Application features for the TF card, accelerometer and RTC will also come in later releases. #### Flashing **Option 1: Flash the factory firmware** The firmware is a merged image flashed at `0x0`: ```bash esptool.py --chip esp32c5 write_flash 0x0 examples/3.7einkDvb/firmware/3.7einkDvb_factory_0x0.bin ``` **Option 2: Build from source** ```bash cd examples/3.7einkDvb idf.py build flash monitor ``` #### Wi-Fi Setup 1. On first boot, the device opens a setup hotspot and the screen shows **ready to setup / WiFi AP OPEN** with the setup address. 2. Connect your phone to the device hotspot **`Eink E6 3.7`** (open, 5 GHz; your phone must support 5 GHz). 3. Open `http://192.168.4.1` in a browser. 4. In the Network tab, tap Scan Wi-Fi, choose a network, enter the password and connect. 5. Once connected, the hotspot turns off and the screen refreshes with a **Scan to upload** QR code. Wi-Fi credentials are saved on the device and used automatically on next boot. If it can't connect within 12 seconds, the setup hotspot opens again. > [!NOTE] > The example hard-codes the Wi-Fi country code to `CN` and runs the setup hotspot on 5 GHz channel 36. If you are in another country or region, change the country code in `examples/3.7einkDvb/main/wifi_mgr/wifi_mgr.c` and `WIFI_AP_CHANNEL` in `wifi_mgr.h` to comply with local radio regulations. #### Web Interface Switch your phone back to the Wi-Fi network you just configured, then scan the **Scan to upload** QR code on the screen. The page has four tabs (UI text is in Chinese): | Tab | Features | | :--- | :--- | | Network | Connection status and device address; scan and connect to Wi-Fi | | Text | Enter text, choose background color, text color and font size, then send to the screen | | Image | Load an image (drag and drop or paste supported), adjust it and send with six-color dithering; clear the screen | | Settings | Enter the battery's rated capacity (mAh) and choose trickle / normal / fast charging | The Image tab offers: - **Framing & rotation**: auto-cropped to the screen ratio; zoom, pan horizontally / vertically, or rotate 90° left / right - **Six-color mixing & style**: dithering and denoising; enable the dithered-pixel view to preview - **Light & color**: exposure, brightness, contrast, highlights, shadows, saturation - **Region replace & resend**: replace only one area of the picture Images are processed in the browser; only the six-color pixel data is uploaded. The screen performs a full refresh. | Network | Text | | :---: | :---: | | Network | Text | | **Image** | **Settings** | | Image | Settings | #### Buttons | Button | Function | | :--- | :--- | | Power (hold 0.5 s) | Power on | | Power (hold 4 s) | Power off | | Power (single press) | Toggle the screen between white and the current picture; the picture is retained | | BOOT | Rotate the current picture by 90° on each press | The default orientation is set by `EINK_ROTATION` in `examples/3.7einkDvb/main/pin_map.h` (`0`, `90`, `180` or `270`; default `0`). ## License - Code (`examples/`): [Apache-2.0](LICENSE) - Hardware files and documentation (`hardware/`, `docs/`): [CC BY-NC-SA 4.0](LICENSE-CC-BY-NC-SA-4.0) - Third-party components (e.g. Vue) remain under their original licenses

O S P T E K  ·  HUELEAF-BASE