ESP32 플랫폼 HAL: ESP-IDF SDMMC를 통한 SD 카드, FATFS 파일 시스템, 시리얼 명령, 메모리 및 파일 시스템 설정.
저장소: github.com/dekiengine/deki-esp32-integration · 최신 릴리스: 0.40.0 · 엔진 0.40.0 이상 필요 · 의존: deki-wifi, deki-ble, deki-http, deki-i2s, deki-uart, deki-i2c, deki-gpio, deki-sdcard, deki-rendering
DekiEditor --packages-add deki-esp32-integration <project> 또는 패키지 관리자로 설치합니다. 엔진 자체의 컴포넌트와 C++ API는 Deki 문서에 있습니다.
에디터에는 ESP32 Integration(으)로 표시됩니다.
컴포넌트
기능 플래그
빌드에서 뺄 수 있는 부분입니다. define이 있는 기능은 그 define으로 켜고 끄며, 나머지는 컴포넌트와 함께 제거됩니다.
| 기능 | define | 기본값 |
| Memory | DEKI_FEATURE_ESP32_MEMORY_SETUP | 켜짐 |
| File System | DEKI_FEATURE_ESP32_FILE_SYSTEM_SETUP | 켜짐 |
| Serial Commands | DEKI_FEATURE_ESP32_SERIAL_SETUP | 켜짐 |
| SD Card (ESP-IDF) | DEKI_FEATURE_ESP32_SD | 켜짐 |
| GPIO (ESP-IDF) | DEKI_FEATURE_ESP32_GPIO | 켜짐 |
| I²C (ESP-IDF) | DEKI_FEATURE_ESP32_I2C | 켜짐 |
| SPI (ESP-IDF) | DEKI_FEATURE_ESP32_SPI | 켜짐 |
| Display present worker and parallel bus (ESP-IDF) | DEKI_FEATURE_ESP32_DISPLAY_WORKER | 켜짐 |
| UART (ESP-IDF) | DEKI_FEATURE_ESP32_UART | 켜짐 |
| I²S (ESP-IDF) | DEKI_FEATURE_ESP32_I2S | 켜짐 |
| S3 SIMD Blit Kernels | DEKI_FEATURE_ESP32_BLIT_SIMD | 켜짐 |
| WiFi STA + scan (ESP-IDF) | DEKI_FEATURE_ESP32_WIFI | 켜짐 |
| BLE (NimBLE) | DEKI_FEATURE_ESP32_BLE | 켜짐 |
| QEMU Display | DEKI_FEATURE_ESP32_QEMU_DISPLAY | 켜짐 |
| HTTPS client (ESP-IDF) | DEKI_FEATURE_ESP32_HTTP | 켜짐 |
컴포넌트 레퍼런스
ESP32QemuDisplaySetup
보드 없이 펌웨어 빌드를 실행할 수 있도록 Espressif QEMU의 화면을 엽니다.
인스펙터 이름: ESP32 QEMU 디스플레이 설정 · 카테고리: ESP32 HAL · 유형: DekiEsp32::ESP32QemuDisplaySetup
| 속성 | 유형 | 기본값 | 제약 | 설명 |
| width | int32 | 320 | 1~4096 | 화면의 너비(픽셀)입니다. |
| height | int32 | 240 | 1~4096 | 화면의 높이(픽셀)입니다. |
| format | enum | "RGB565" | RGB565, ARGB8888 | 화면의 픽셀 포맷입니다. 게임은 이 포맷으로 렌더링합니다. |
ESP32SerialSetup
ESP32의 시리얼 포트로 에디터의 명령에 응답합니다.
인스펙터 이름: ESP32 시리얼 설정 · 카테고리: ESP32 HAL · 유형: DekiEsp32::ESP32SerialSetup
| 속성 | 유형 | 기본값 | 제약 | 설명 |
| baudRate | int32 | 115200 | 9600~921600 | 시리얼 보드레이트 |
변경 내역
변경 내역은 영어로 되어 있습니다.
0.40.0
Added
- DEKI:PROFILE also reports each object in the scene, most expensive first: a DEKI:PROFILE:OBJECT line with its path, type, sorting order, its share of finding what changed, of making and drawing its pixels, how many times it was drawn and why (new, changed, still, overPin), per frame; the first 64, then DEKI:PROFILE:OBJECTS with how many there were.
Changed
- minEngine 0.40.0: built against engine 0.40.0. A build of this package from before does not load and is rebuilt.
- Builds keep the WiFi driver's code in flash (CONFIG_ESP_WIFI_IRAM_OPT=n, CONFIG_ESP_WIFI_RX_IRAM_OPT=n): 18.5 KB more internal RAM for the game, the display and the radio's own buffers, whether WiFi is on or not. Measured on a T-Deck Plus: 1 MB downloads over a phone hotspot averaged 140 KB/s against 149 KB/s (the ranges overlap), and frames cost the same while WiFi was busy. A board that wants the driver's code in internal RAM again sets both to y in its platform's sdkconfig list, which comes last. Existing projects get it on their next build: the builder regenerates a stale sdkconfig when its defaults change.
- Builds also keep the radio's PHY code and libc's locks in flash (CONFIG_ESP_PHY_IRAM_OPT=n, CONFIG_LIBC_LOCKS_PLACE_IN_IRAM=n): 1 KB more internal RAM. Frames on a T-Deck Plus cost the same (19.7 ms against 19.6 on a farm map, 32.9 against 32.9 with 16 sprites walking). The heap's functions stay in internal RAM: in flash they cost about 5.5 ms a frame.
- ESP32-S3 builds have a 32 KB instruction cache (CONFIG_ESP32S3_INSTRUCTION_CACHE_32KB=y; ESP-IDF's default is 16 KB). A frame runs more code than 16 KB holds, and how often it missed depended on where a build placed the code: the same scene moved by a millisecond between unrelated builds. Measured on a T-Deck Plus with a scrolling farm: 19.0 to 16.9 ms a frame, 21.9 to 18.5 ms with 4 sprites walking, 30.6 to 26.0 ms with 16, and builds within 0.2 ms of each other. It takes 16 KB of internal RAM; a board that needs it back sets CONFIG_ESP32S3_INSTRUCTION_CACHE_16KB=y in its sdkconfig list.
- Boards with PSRAM keep the static data ESP-IDF's libraries allow there in PSRAM (CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y): 14.4 KB of WiFi, lwIP and network tables in a T-Deck build, which only WiFi touches.
- Allocations through operator new, std::vector and std::string go to PSRAM once DMA-capable internal RAM, not all internal RAM, is down to 16 KB. An ESP32-S3's RTC fast memory (about 8 KB) is internal but no driver's DMA reaches it, so the old count let a scene's objects leave drivers almost nothing. With these three changes, a T-Deck Plus running the farm in whole frames keeps 14.9 KB of DMA-capable RAM free (largest block 13.8 KB), room for an SD card and audio started mid-game.
Fixed
- Choosing ESP-IDF in the New Platform dialog no longer crashes the panel: the package now takes the editor's ImGui context.
0.30.0
Changed
- minEngine 0.30.0: built against engine 0.30.0. A build of this package from before does not load and is rebuilt.
Fixed
- A firmware build from the editor runs ESP-IDF. On a machine whose PATH holds an entry with a stray quote (a Windows Kits installer leaves one), the build ran nothing and reported success: the variables it sets were set lines in one cmd line, and the quote, expanded from PATH%, closed one early and turned the rest of the line, export.bat and idf.py included, into a value. They are the build's environment now, not part of its command, and such an entry's quote is left out of the build's PATH, which the build says, naming the entry (otherwise cmd finds nothing after it, and export.bat reports git missing).
- A build is a success only when it leaves the firmware (build/DekiGame.bin): one that exits 0 without it fails, saying so. A build with nothing to rebuild says the firmware was already up to date. The build output names the firmware file.
- ESP-IDF runs with PYTHONUTF8=1, as idf.py asks for on a console that is not UTF-8.
이전 릴리스: CHANGELOG.md
패키지의 리플렉션 데이터에서 생성했습니다(엔진 0.40.1). 속성 이름은 씬 파일에서 쓰는 키입니다. 이름을 바꿔도 별칭이 유지됩니다(호환성).