{"id":27265869,"url":"https://github.com/trianglesis/esp32-c6_lvgl","last_synced_at":"2026-01-22T14:38:44.848Z","repository":{"id":286788384,"uuid":"962558016","full_name":"trianglesis/esp32-c6_LVGL","owner":"trianglesis","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-11T08:43:21.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T09:38:17.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trianglesis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-08T10:33:12.000Z","updated_at":"2025-04-11T08:43:24.000Z","dependencies_parsed_at":"2025-04-08T11:42:35.506Z","dependency_job_id":null,"html_url":"https://github.com/trianglesis/esp32-c6_LVGL","commit_stats":null,"previous_names":["trianglesis/esp32-c6_lvgl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trianglesis/esp32-c6_LVGL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trianglesis%2Fesp32-c6_LVGL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trianglesis%2Fesp32-c6_LVGL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trianglesis%2Fesp32-c6_LVGL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trianglesis%2Fesp32-c6_LVGL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trianglesis","download_url":"https://codeload.github.com/trianglesis/esp32-c6_LVGL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trianglesis%2Fesp32-c6_LVGL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28664656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-11T08:39:17.850Z","updated_at":"2026-01-22T14:38:44.833Z","avatar_url":"https://github.com/trianglesis.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP32 LVGL\n\nBoard: `ESP32-C6-LCD-1.47`\nwaveshare [URL](https://www.waveshare.com/wiki/ESP32-C6-LCD-1.47)\n\nConnect VS Code COM port as following: `ESP32-C6 chip via ... USB-JTAG`\n\nInitial setup:\n\n```text\nCONFIG_ESPTOOLPY_FLASHSIZE_4MB=y\nCONFIG_ESPTOOLPY_FLASHSIZE=\"4MB\"\n```\n\nUse partitions from example:\n\n```text\n# Name,     Type, SubType, Offset,   Size, Flags\n# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap,,,,\nnvs,        data, nvs,      0x9000,  0x6000,\nfactory,0,0,        0x10000, 2M,\nflash_test, data, fat,      ,        528K,\n\n```\n\n# Display\n\nModel: `ST7789` \n- `LCD type \tTFT `\n- `172(H)RGB x320(V)`\n- `Drive IC ST7789V3`\n\n```text\nLCD Pin \tESP32C6\nMOSI        GPIO6\nSCLK        GPIO7\nLCD_CS      GPIO14\nLCD_DC      GPIO15\nLCD_RST     GPIO21\nLCD_BL      GPIO22 \n```\n\nDriver: [components/esp_lcd/src/esp_lcd_panel_st7789.c](https://github.com/espressif/esp-idf/blob/a25e7ab59ed197817d4a78e139220b2707481f67/components/esp_lcd/src/esp_lcd_panel_st7789.c)\n\n# RGB\n\n```text\nRGB_Control \tGPIO8 \n```\n\n# SD Card\n\n```text\nTF Card     ESP32C6\nMISO        GPIO5\nMOSI        GPIO6\nSCLK        GPIO7\nCS          GPIO4\nSD_D1       NC\nSD_D2       NC \n```\n\n\n## Playgroud for testing LVGL\n\nLVGL Start [DOC](https://github.com/lvgl/lvgl/blob/4a506542dd3fbcd8d0f39cd12bde542589b57081/docs/get-started/quick-overview.md) \n\n# Making things work:\n\n## Example way\n\nRequre older LVGL 8, not suitable now\n\nUse example dir hierarchy and files from:\n- https://www.waveshare.com/wiki/ESP32-C6-LCD-1.47\n- File `ESP32-S3-LCD-1.47-Demo`\n\nJust use as project example.\nCannot be used with latest version 9+\n\n[Log](doc/log/lvgl_9_is_not_usable_with_example.log)\n\n## Other people help way\n\nRead this [forum](https://forum.lvgl.io/t/gestures-are-slow-perceiving-only-detecting-one-of-5-10-tries/18515)\n\nIt has a great example of everything without a hustle.\n\nFor deep understanding it can be usefull to read the `complex way` later.\n\n## Complex way\n\nContinue to study:\n\nInstall:\n\nUsual 1st cmd OR better local (to be able to configure lvgl for once)\n\n- `idf.py add-dependency \"lvgl/lvgl^9.2.2\"`\n- `git submodule add https://github.com/lvgl/lvgl.git components/lvgl`\n\nInto the ignored folder (not to add the full other repo in my repo): \n\n- `git submodule add -f https://github.com/lvgl/lvgl.git components/lvgl`\n\nIMPORTANT: Switch branch to a released last: `9.2.2`\n\n- `cd .\\components\\lvgl\\`\n- `git checkout v9.2.2`\n\n### Optional\n\nOptional, not need LED for LCD to work\n\n- `idf.py add-dependency \"espressif/led_strip^3.0.1\"`\n\nOther module help driver for display, probably (not actually, try to use lvgl pure, as it already has a driver for our display and board):\n\n- `idf.py add-dependency \"espressif/esp_lvgl_port^2.5.0\"`\n\n### Setup\n\n#### Configuration\n\nAccording to the [doc](https://docs.lvgl.io/master/details/integration/adding-lvgl-to-your-project/configuration.html#lv-conf-h)\n\n1. Copy `lv_conf_template.h` \n   1. to `components/lv_conf.h`\n      1. Should be a path: \n         1. `{PROJECT_ROOT}/components/lvgl/..`\n         2. `{PROJECT_ROOT}/components/lv_conf.h`\n   2. Open and change the following to 1: `#if 0` (/* Set this to \"1\" to enable content */)\n   3. Define `LV_COLOR_DEPTH 16` for LCD: `Display: ST7789`\n   4. Define `LV_USE_ST7789 1` for LCD: `Display: ST7789`\n   5. Optional: disable examples: `LV_BUILD_EXAMPLES 0`\n   6. Optional: disable demo: `LV_USE_DEMO_WIDGETS 0 `\n\n2. Optional: config LVGL at `menuconfig`\n   1. `idf.py menuconfig` -\u003e `LVGL configuration` (most bottom) - \u003e\n        ```text\n        Color depth: 24\n        ```\n3. Try build the project first time.\n   1. Do not flash, just builds.\n   2. Everything should be fine.\n\n#### Connecting LVGL\n\nAccording to the [DOC](https://docs.lvgl.io/master/details/integration/adding-lvgl-to-your-project/connecting_lvgl.html#initializing-lvgl)\n\nHelp [example](https://forum.lvgl.io/t/gestures-are-slow-perceiving-only-detecting-one-of-5-10-tries/18515/86)\n\n1. Modify `main.c` adding `#include \u003clvgl.h\u003e` and init at the `app_main`: `lv_init();`\n2. Init drivers for our display: `ST7789`\n   1. Doc [read](https://docs.lvgl.io/master/details/integration/driver/display/st7789.html)\n   2. Check this too: [DOC](https://github.com/lvgl/lvgl/blob/release/v9.2/docs/porting/display.rst#id2)\n\n5. Using \n\n6. Create a dir for LVGL 'Squareline studio' export: `{PROJECT_ROOT}/components/screen/`\n   1. It's not used yet\n\n# Square Line setup\n\nUsing as example: `https://github.com/hiruna/esp-idf-t-display-s3/tree/main`\n\nCreate a board:\n\n`C:\\Program Files\\SquareLine Studio 1.5.1\\boards..`\nOR\n`C:\\Users\\%USER%\\SquareLine\\boards`\n\n# Emulator\n\nUsing VS code:\n\n- https://github.com/lvgl/lv_port_pc_vscode\n\n\n## Refference\n\nProject example\n- https://github.com/Omegaki113r/lvgl_demo/tree/main\n- https://github.com/VolosR/waveshareBoards/tree/main/C6example\n\n## DOCs\n\nWaveshare:\n- https://www.waveshare.com/wiki/ESP32-C6-LCD-1.47\n\nLVGL Espressif\n- https://docs.lvgl.io/master/details/integration/chip/espressif.html\n\nLVGL:\n- https://github.com/lvgl/lvgl/blob/4a506542dd3fbcd8d0f39cd12bde542589b57081/docs/get-started/quick-overview.md\n\nEspressif:\n- https://github.com/espressif/esp-bsp/tree/master/components/esp_lvgl_port\n\nOther:\n- https://github.com/Omegaki113r/lvgl_demo/tree/main/components/lvgl\n\n\n## Components\n\n- https://components.espressif.com/components/lvgl/lvgl/versions/9.2.2\n- https://components.espressif.com/components/espressif/esp_lvgl_port/versions/2.5.0\n\n\n## ESP Home\n\n- https://esphome.io/cookbook/lvgl\n\n## ETC\n\nSimilar projects for reference\n\n- https://github.com/hiruna/esp-idf-t-display-s3","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrianglesis%2Fesp32-c6_lvgl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrianglesis%2Fesp32-c6_lvgl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrianglesis%2Fesp32-c6_lvgl/lists"}