From ac32515f0562a8aa78f7e67eed38c66e4746bfde Mon Sep 17 00:00:00 2001 From: YangJie Date: Thu, 26 Feb 2026 18:54:24 +0800 Subject: [PATCH 1/2] feat: add AGENTS.md for Cursor Cloud setup and update platform_config.yaml for ESP32 branch change --- AGENTS.md | 70 +++++++++++++++++++++++++++++++++++ platform/platform_config.yaml | 4 +- 2 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 000000000..a3e644a3c --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,70 @@ +# AGENTS.md + +## Cursor Cloud specific instructions + +### Overview + +TuyaOpen is a cross-platform IoT SDK (C/C++) for smart hardware. It supports Tuya T-series MCUs, ESP32, Raspberry Pi, and Linux/Ubuntu. On Cursor Cloud, the LINUX target can be compiled and run natively on the host. + +### Communication and behavior + +- Always respond in Simplified Chinese unless explicitly requested otherwise. +- Prefer concise progress updates while running commands. +- Do not use interactive workflows unless the task explicitly requires them. + +### Environment setup + +Initialize the environment from repository root: + +```bash +cd /workspace && . ./export.sh +``` + +What this does: +- Creates or reuses `.venv/` +- Installs Python dependencies from `requirements.txt` +- Exports `OPEN_SDK_ROOT`, `OPEN_SDK_PYTHON`, and `OPEN_SDK_PIP` +- Makes `tos.py` available in the current shell + +### Build workflow + +Standard flow: +1. `tos.py check` to verify required tools and submodules +2. `cd examples//` +3. `tos.py build` +4. Use binaries from `/dist/` (LINUX target produces native ELF) + +### Non-interactive configuration guidance + +- `tos.py config choice` and `tos.py config menu` are interactive TTY flows. Avoid them in non-interactive cloud runs. +- Prefer editing `app_default.config` directly for deterministic builds. +- To avoid prompt blocks from platform commit checks, create: + +```bash +mkdir -p .cache && touch .cache/.dont_prompt_update_platform +``` + +### Lint and formatting + +- Single file or directory checks: + - `python tools/check_format.py --debug --files ` + - `python tools/check_format.py --debug --dir ` +- PR-style checks: + - `python tools/check_format.py --base ` + +### System dependencies + +Expected packages (see `Dockerfile`): +`build-essential`, `libsystemd-dev`, `locales`, `libc6-i386`, `libusb-1.0-0`, `libusb-1.0-0-dev`, `python3`, `python3-pip`, `python3-venv`, `clang-format` + +### Validation expectations + +- For source changes, run the smallest relevant build or check for the touched area. +- For formatting-only updates, run `tools/check_format.py` against changed files. +- For docs-only updates, verify file content, command correctness, and path validity. + +### Artifacts and output locations + +- Build intermediates: `/.build/` +- Final outputs: `/dist/` +- Platform SDK cache: `platform/LINUX/` diff --git a/platform/platform_config.yaml b/platform/platform_config.yaml index 144bf113c..dbd12c1ce 100755 --- a/platform/platform_config.yaml +++ b/platform/platform_config.yaml @@ -21,8 +21,8 @@ platforms: - name: ESP32 repo: https://github.com/tuya/TuyaOpen-esp32 - branch: dev-esp32 - commit: 35bb1fc21a63f7bb2a2ee3bba348099e191179d7 + branch: master + commit: f5ce809e89f5f8ba61758e2675fd31fa6d474737 - name: LN882H repo: https://github.com/tuya/TuyaOpen-ln882h From 770e3924049b6c64284e84890b4622f1d653f264 Mon Sep 17 00:00:00 2001 From: YangJie Date: Thu, 26 Feb 2026 18:55:54 +0800 Subject: [PATCH 2/2] feat: enable support for compressed fonts in lv_conf.h --- src/liblvgl/v8/conf/lv_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liblvgl/v8/conf/lv_conf.h b/src/liblvgl/v8/conf/lv_conf.h index b57367227..946871da3 100755 --- a/src/liblvgl/v8/conf/lv_conf.h +++ b/src/liblvgl/v8/conf/lv_conf.h @@ -510,7 +510,7 @@ #define LV_FONT_FMT_TXT_LARGE 1 /*Enables/disables support for compressed fonts.*/ -#define LV_USE_FONT_COMPRESSED 0 +#define LV_USE_FONT_COMPRESSED 1 /*Enable subpixel rendering*/ #define LV_USE_FONT_SUBPX 0