Логотип Esp32c6 Lcd147

Esp32c6 Lcd147

Спільнота
alexex1993
esp32c6-lcd147

Firmware development for the Waveshare ESP32-C6-LCD-1.47 board (ESP32-C6FH4, QFN32) — its 1.47" 172x320 ST7789 LCD, WS2812 RGB LED, microSD/TF slot, USB-Serial-JTAG console, Wi-Fi 6/BLE/802.15.4 radio, and the ESP-IDF + PlatformIO setup around them. Use when working on this board or the ESP32-C6-LCD-1.47-M variant (SKU 28563 / 30381, WS-28563): project setup, platformio.ini and sdkconfig, pin mapping and strapping pins, LCD or SD bring-up on the shared SPI bus, backlight brightness, display frame rate, flashing over Type-C, or debugging why something on the board does not work.

Огляд

Видавецьalexex1993
Репозиторійmcu-skills
Назва навичкиesp32c6-lcd147
Зірки
27
Форки
3
Файли в пакеті
21
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 21

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: alexex1993. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Esp32c6 Lcd147 у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/alexex1993/mcu-skills/tree/main/skills/esp32/esp32c6-lcd147
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alexex1993/mcu-skills.git /tmp/mcu-skills
mkdir -p .claude/skills
cp -r /tmp/mcu-skills/skills/esp32/esp32c6-lcd147 .claude/skills/esp32c6-lcd147
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Esp32c6 Lcd147 в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Esp32c6 Lcd147, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Esp32c6 Lcd147 не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Waveshare ESP32-C6-LCD-1.47

Board-specific firmware knowledge. Most failure modes on this board are silent — the firmware runs, the panel lights up, and something is subtly wrong — so read the reference file rather than guessing.

  • reference/board-hardware.md — the complete board reference: pin table, reset-time pin states, strapping analysis, free pins, peripheral availability, power budget, memory and partitions, the display's quirks (Part I), plus a development guide (Part II: §10 toolchain, §11 sdkconfig, §12 flashing, §13 peripheral cookbook, §14 symptom → cause → fix table).
  • reference/recipes.md — copy-paste code: platformio.ini, sdkconfig.defaults, board.h, LCD bring-up, LEDC backlight, frame presentation, partial redraw, the WS2812 driver, TF card on the shared bus, ADC, the BOOT button, font generation.
  • reference/esp32c6-soc.md — the ESP32-C6 silicon datasheet digest, for chip-level questions: IO MUX and LP IO tables, boot straps, memory, every peripheral's feature list, electrical and RF characteristics.
  • reference/esp32-family.md — the rest of the family, for "should this be a different ESP32?" questions: what does and does not port between chips, radio and USB capability per chip, the RMT generation table (WS2812 under Wi-Fi load), deep-sleep memory and ULP/LP-core availability, and a chip-selection table.
  • template/ — a project that builds clean, in two variants, plus a scaffold script. See template/README.md.

Confirm the board first

Waveshare also sells the ESP32-C6-Touch-LCD-1.47 — same vendor, same 1.47" 172×320 panel, different board. If the screen responds to a finger, or there is no WS2812 next to the panel, it is that one: a JD9853 controller instead of the ST7789, an 8 MB C6FH8 instead of the 4 MB C6FH4, a 22-pin header instead of 18, and a pin map in which only LCD_CS, LCD_DC and TF_CS match this board's. Use the esp32c6-touch-lcd147 skill and do not port pin numbers between them — the wrong map gives a dark screen, not an error.

Orientation

SoCESP32-C6FH4, RISC-V RV32IMAC @ 160 MHz + LP core @ 20 MHz, QFN32, 22 GPIOs
Memory4 MB in-package flash (1 MB default app partition), 512 KB HP SRAM (~320 KB linkable), 16 KB LP SRAM
DisplayST7789 172×320 on SPI2 — MOSI GPIO6, SCLK GPIO7, CS GPIO14, DC GPIO15, RST GPIO21, BL GPIO22. Write-only, no MISO
StoragemicroSD on the same SPI2 bus, CS GPIO4, MISO GPIO5. SPI 1-bit mode only
LEDone WS2812-family RGB LED on GPIO8 (a strapping pin — safe at factory eFuse settings)
ButtonsBOOT GPIO9, pressed = low · RESET acts on CHIP_PU, not a GPIO
USBType-C straight to the SoC's USB-Serial-JTAG (GPIO12/13). No bridge chip, no debug header — console, flashing and JTAG all share it
Free pinsGPIO0, 1, 2, 3, 18, 19, 20, 23. GPIO0–3 are also the only ADC channels and the only deep-sleep wake pins left
RadioWi-Fi 6 / BLE 5 / 802.15.4, onboard ceramic antenna, nothing to configure
ToolchainPlatformIO 6.1.19 + platform-espressif32 7.0.1 + ESP-IDF 6.0.1, board = esp32-c6-devkitc-1

Rules that prevent the expensive mistakes

Each of these produces a failure that looks like something else.

  1. CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y in sdkconfig.defaults. Without it the console defaults to UART0 on GPIO16/17, which is wired to nothing on this board: the monitor is silent while the firmware runs perfectly, and you debug blind.
  2. board_upload.flash_size = 4MB + CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y. There is no PlatformIO board definition for this board, so it borrows esp32-c6-devkitc-1, which claims 8 MB. Both lines are needed — they feed different tools — or an oversized image links happily and fails to boot.
  3. esp_lcd_panel_invert_color(panel, true). The IPS panel ships inverted. Without it every colour is a photographic negative, which reads as "my RGB565 packing is broken" and sends you off debugging the wrong thing.
  4. esp_lcd_panel_set_gap(panel, 34, 0). The 172-pixel glass is centred in the ST7789's 240-column RAM: (240 − 172) / 2 = 34. Without it the image is shifted and wraps at the edge.
  5. .data_endian = LCD_RGB_DATA_ENDIAN_BIG in the panel config, and byte-swap RGB565 once, at compile time in the colour macro. Swapping per pixel at runtime costs more than the effect being drawn.
  6. .miso_io_num = -1 for the panel. It is write-only. A project that also wants the SD card must initialise the shared bus with miso_io_num = 5 instead.
  7. The backlight is PWM, never gpio_set_level(). Waveshare's own warning: above 50 % duty for extended periods the panel overheats and develops permanent dark shadows. Drive GPIO22 from an LEDC channel and clamp at 50 %. This is a hardware-damage rule, not a style preference.
  8. The LCD and the TF card share MOSI (GPIO6) and SCLK (GPIO7) and are separated only by chip select. Initialise SPI2 once; a second spi_bus_initialize() returns ESP_ERR_INVALID_STATE. Adding any SPI device means adding a third CS from the free pins, not a second bus.
  9. 40 MHz is the pixel-clock ceiling and it is a wiring fact. The board wires MOSI/SCLK onto the pads the IO MUX assigns to SCLK/MOSI, so SPI2 is routed through the GPIO Matrix at roughly half the 80 MHz IO-MUX ceiling. No software change recovers it.
  10. A full-screen flush is 22 ms → ~45 fps, hard. 172 × 320 × 2 B = 110,080 B at 40 MHz. If an animation looks slow this is the wall, not the CPU. See below.
  11. GPIO4–GPIO7 are gone, and they were the interesting ones. They carry all four JTAG pads (so pad-JTAG is impossible — debug over the Type-C port), ADC1_CH4-6, and the fixed pins of LP UART and LP I2C (so neither LP peripheral is available while the card slot and display exist).
  12. Never burn EFUSE_UART_PRINT_CONTROL or EFUSE_JTAG_SEL_ENABLE. Both hand a boot-time decision to a pin that already has a job here — the RGB LED's idle level (GPIO8) and the LCD's D/C line (GPIO15). eFuse bits are one-time programmable.
  13. The WS2812 wire order is GRB, not RGB, and the LED is far brighter than its numbers suggest — it sits under clear acrylic beside the panel. Divide by ~10.
  14. Deep-sleep is 7 µA for the SoC, not for the board. The LDO's quiescent draw, the backlight driver and the LED's standby current all add on top. Do not quote the datasheet figure for this board.

When the task is display performance

The bus, not the CPU, is the limit: 110,080 bytes at 40 MHz is 22.0 ms on the wire, and gfx_present() blocks on the transfer-done semaphore so that nothing scribbles over the framebuffer mid-DMA. That gives a hard ~45 fps for full-screen redraws.

Three moves, in order of payoff:

  1. Redraw less. esp_lcd_panel_draw_bitmap() takes a rectangle. A 172×40 status strip is 2.75 ms instead of 22 ms — an 8× win for the common case where only part of the UI changed. Coordinates are (x_start, y_start, x_end, y_end) with the end exclusive, and the source buffer's stride must equal the rectangle width, so full-width bands are just an offset into the framebuffer.
  2. Double-buffer, if you have the RAM: another 110 KB out of ~320 KB. It overlaps CPU and DMA but does not raise the 45 fps ceiling.
  3. Nothing else — do not go looking for a faster clock (rule 9).

Keep per-pixel loops integer-only. The RISC-V core here has no FPU; float belongs in one-time init paths (palette and lookup-table generation), never in a frame loop.

When the task is memory

A full framebuffer is 110,080 B — about a third of the ~320 KB the linker actually hands out. The template's full variant links at 123 KB. A Wi-Fi stack is another ~50 KB, a second framebuffer another 110 KB, LVGL more again. Framebuffer + Wi-Fi + double-buffering does not fit — pick two.

Starting a new project

Do not hand-assemble one. template/ builds clean; scaffold from it:

Run from the directory containing this SKILL.md; use an absolute path for the new project.

sh
./template/variants/new-project.sh <target-dir> [--full|--minimal]
cd <target-dir> && pio run
  • --minimal — RGB LED sweep + console heartbeat, no display, no SPI bus. 167,888 B flash, 11,052 B RAM. Flash this first on a new board: it proves the toolchain, the flashing route and the console while the display cannot confuse the diagnosis, and its two outputs (log line, LED) fail independently.
  • --full (default) — ST7789 effect carousel, 12×24 ASCII + Cyrillic font, LEDC backlight, RGB LED accent. 245,214 B flash, 123,052 B RAM.

Both build as-is with ESP-IDF 6.0.1 (verified). Nothing is generated and no paths are embedded, so copying the tree by hand works identically. template/README.md maps files to subsystems so a --full scaffold can be stripped back cleanly.

When the user already has a project, prefer bringing it in line with the template's platformio.ini, sdkconfig.defaults and board.h over rewriting their code.

Flashing

Nothing to press:

sh
pio run -t upload -t monitor        # or: idf.py -p <port> flash monitor

The USB Serial/JTAG controller supports host-controlled reset and download-mode entry, so esptool drives the whole cycle over the Type-C cable. The board appears as CDC-ACM (/dev/cu.usbmodem*, /dev/ttyACM*, or a COM port).

When firmware has wedged USB, or a console config change broke enumeration: hold BOOT, tap RESET, release BOOT → Joint Download Boot. ROM code enumerates with no valid application present, so bad firmware cannot brick this board. If it still fails, esptool.py -p <port> erase_flash — a 4 MB erase takes 20–60 s, so it is probably not hung.

There is no debug header. JTAG is the same Type-C port, via the built-in USB Serial/JTAG controller — but not with the openocd PlatformIO installs for this board. platform-espressif32's platform.json pins tool-openocd-esp32 to ~2.1100.0 (installed: 2.1100.20220706), and that build predates the ESP32-C6 entirely: it ships board/esp32c3-builtin.cfg and board/esp32s3-builtin.cfg but no esp32c6-builtin.cfg and no target/esp32c6.cfg anywhere in the package. pio debug / a bare openocd -f board/esp32c6-builtin.cfg fails with "Can't find board/esp32c6-builtin.cfg" on this toolchain, which reads like a typo rather than a missing chip target. Use a current upstream openocd-esp32 release (Espressif's fork, not PlatformIO's pinned copy) or an ESP-IDF export'd environment's own idf.py openocd, either of which does carry ESP32-C6 support.

Reporting

Say what is verified on hardware and what is derived. In this skill the display path (pin map, 40 MHz clock, gap 34, colour inversion, big-endian RGB565, the 45 fps ceiling) ran on a real board. The LEDC backlight and the WS2812 driver are compile-verified and derived from the vendor documents — the original firmware drove the backlight as a plain GPIO and never touched the RGB LED. Recipes marked "⚠︎ compile-checked only" in reference/recipes.md (TF card, ADC, BOOT button) are in the same category. Everything marked ⚠︎ Inference in reference/board-hardware.md is a conclusion combining the Waveshare wiki with the Espressif datasheet, not a printed vendor statement — flag it as such rather than presenting it as fact.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Esp32c6 Lcd147?

Firmware development for the Waveshare ESP32-C6-LCD-1.47 board (ESP32-C6FH4, QFN32) — its 1.47" 172x320 ST7789 LCD, WS2812 RGB LED, microSD/TF slot, USB-Serial-JTAG console, Wi-Fi 6/BLE/802.15.4 radio, and the ESP-IDF + PlatformIO setup around them. Use when working on this board or the ESP32-C6-LCD-1.47-M variant (SKU 28563 / 30381, WS-28563): project setup, platformio.ini and sdkconfig, pin mapping and strapping pins, LCD or SD bring-up on the shared SPI bus, backlight brightness, display frame rate, flashing over Type-C, or debugging why something on the board does not work.

Навіщо використовувати Esp32c6 Lcd147 у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Esp32c6 Lcd147 — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Esp32c6 Lcd147 у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/alexex1993/mcu-skills/tree/main/skills/esp32/esp32c6-lcd147. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Esp32c6 Lcd147?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Esp32c6 Lcd147?

Зі скількома забажаєте. У TypingMind ви можете використовувати Esp32c6 Lcd147 із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Esp32c6 Lcd147?

Так. На GitHub цю навичку публікує alexex1993 за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Openclaw Changelog Update

openclaw
ОрганізаціяПопулярне

Повторно створюйте розділи журналу змін релізу OpenClaw на основі історії git перед випусками beta, stable або extended-stable.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Openclaw Ci Limits

openclaw
ОрганізаціяПопулярне

Керуйте GitHub Actions для OpenClaw і пропускною здатністю CI у Blacksmith, бюджетами реєстрації раннерів, обмеженнями fanout, одночасним запуском лише одного завдання для кожного push у main, розміром шард, перенесенням завдань на хостовані раннери, станом черги та безпечним…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Openclaw Debugging

openclaw
ОрганізаціяПопулярне

Діагностуйте проблеми з моделями, провайдерами, інтерфейсом інструментів, режимом коду, потоковою передачею та роботою OpenClaw у реальному часі/Crabbox. Перш ніж змінювати код, добирайте потрібні журнали, перевірки та спосіб підтвердження, зокрема отримуйте збережені…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Openclaw Live Updater

openclaw
ОрганізаціяПопулярне

Підтримуйте канонічну активну копію репозиторію OpenClaw main, Gateway під керуванням macOS LaunchAgent, локальну програму macOS, CI для точного коміту main і регулярну повну перевірку релізу. Використовуйте для швидкого оновлення…

82.2K
391K
Файлів: 2
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇