{"id":29624974,"url":"https://github.com/shpat-devv/t-watchs3","last_synced_at":"2025-07-21T06:05:57.655Z","repository":{"id":247794707,"uuid":"825288681","full_name":"shpat-devv/T-WatchS3","owner":"shpat-devv","description":"My versoin of the S3 Watch from Lily go","archived":false,"fork":false,"pushed_at":"2024-07-12T11:49:30.000Z","size":7061,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T11:37:33.690Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shpat-devv.png","metadata":{"files":{"readme":"README_CN.MD","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2024-07-07T11:19:01.000Z","updated_at":"2025-05-14T17:51:02.000Z","dependencies_parsed_at":"2024-12-04T19:41:57.611Z","dependency_job_id":null,"html_url":"https://github.com/shpat-devv/T-WatchS3","commit_stats":null,"previous_names":["uglypr1nces/t-watchs3","shpat-devv/t-watchs3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shpat-devv/T-WatchS3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shpat-devv%2FT-WatchS3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shpat-devv%2FT-WatchS3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shpat-devv%2FT-WatchS3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shpat-devv%2FT-WatchS3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shpat-devv","download_url":"https://codeload.github.com/shpat-devv/T-WatchS3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shpat-devv%2FT-WatchS3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266248501,"owners_count":23899056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-07-21T06:05:57.061Z","updated_at":"2025-07-21T06:05:57.649Z","avatar_url":"https://github.com/shpat-devv.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align = \"center\"\u003e🌟LilyGO T-Watch🌟\u003c/h1\u003e\n\n\n[![PlatformIO CI](https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library/actions/workflows/platformio.yml/badge.svg)](https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library/actions/workflows/platformio.yml)\n[![Arduino_CI](https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library/actions/workflows/arduino_ci.yml/badge.svg?branch=t-watch-s3)](https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library/actions/workflows/arduino_ci.yml)\n\n**[English](README.MD) | 中文**\n\n## News:\n- 当前`T-Watch-Lib` 仅仅适配了`T-Watch S3` 版本,esp32版本计划支持\n\n## 1️⃣ PlatformIO Quick Start \u003c推荐\u003e\n\n1. 安装[VisualStudioCode](https://code.visualstudio.com/) 和 [Python](https://www.python.org/)\n2. 在`VisualStudioCode`扩展中搜索`PlatformIO`插件并安装.\n3. 安装完成后需要将`VisualStudioCode`重新启动\n4. 重新开启`VisualStudioCode`后,选择 `VisualStudioCode` 左上角的 `文件` -\u003e `打开文件夹` -\u003e选择 `TTGO_TWatch_Library` 目录\n5. 等待安装第三方依赖库安装完成\n6. 点击 `platformio.ini` 文件,在`platformio` 栏目中取消需要使用的示例行,请确保仅仅一行有效\n7. 点击左下角的（✔）符号编译\n8. 将板子与电脑USB进行连接\n9. 点击（→）上传固件\n10. 点击 (插头符号) 监视串行输出\n\n\n## 2️⃣ Arduino IDE Quick Start\n\n1. 安装 [ArduinoIDE](https://www.arduino.cc/en/software)\n2. 安装 `Arduino ESP32 2.0.9`\n   ![InstallArduino](./images/InstallArduino.jpg)\n   * **请使用 2.0.9 ，新版本变更过大，目前还没有做适配**\n3. 安装 [TTGO_TWatch_Library](https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library)\n4. 安装 [T-Watch-Deps](https://github.com/Xinyuan-LilyGO/T-Watch-Deps)\n   - 将[T-Watch-Deps](https://github.com/Xinyuan-LilyGO/T-Watch-Deps)里的所有目录拷贝到 `\u003cC:\\Users\\UserName\\Documents\\Arduino\\libraries\u003e`,如果没有`libraries`目录,请新建.\n   - 请注意,不是拷贝`T-Watch-Deps`目录,而是拷贝`T-Watch-Deps`目录里面的文件夹到\u003clibraries\u003e\n   - 请注意,当前第三方库仅仅只有\u003cTFT_eSPI\u003e进行了[预配置](https://github.com/Xinyuan-LilyGO/T-Watch-Deps/blob/be311130018708903d5ed1e524b73d670a2e18f1/TFT_eSPI/User_Setup_Select.h#L143),当升级了\u003cTFT_eSPI\u003e之后你需要重新将\u003cextras/Setup212_LilyGo_T_Watch_S3.h\u003e移动到\u003cTFT_eSPI/User_Setups\u003e目录内,并且在[TFT_eSPI/User_Setup_Select.h](https://github.com/Xinyuan-LilyGO/T-Watch-Deps/blob/be311130018708903d5ed1e524b73d670a2e18f1/TFT_eSPI/User_Setup_Select.h#L143)中添加`#include \u003cUser_Setups/Setup212_LilyGo_T_Watch_S3.h\u003e`\n5. 打开ArduinoIDE -\u003e Tools \n   - Board -\u003e ESP32S3 Dev Module\n   - USB CDC On Boot -\u003e Enable   # 注意，在不连接USB的时候你需要将Enable改为Disable，这样USB CDC 不会阻止板子的启动\n   - CPU Frequency -\u003e 240MHz\n   - USB DFU On Boot -\u003e Disable\n   - Flash Mode -\u003e QIO 80MHz\n   - Flash Size -\u003e 16MB(128Mb)\n   - USB Firmware MSC On Boot -\u003e Disable\n   - PSRAM -\u003e OPI PSRAM\n   - Partition Scheme -\u003e 16M Flash(3MB APP/9.9MB FATFS)\n   - USB Mode -\u003e Hardware CDC and JIAG\n   - Upload Mode -\u003e UART0/Hardware CDC\n   - Upload Speed -\u003e 921600\n5. 插入USB到PC,点击上传\u003c如果无法顺利上传,请查看下方FAQ\u003e\n\n\n\u003ch2 align = \"left\"\u003e4️⃣ Example Source \u003c/h2\u003e\n\n- **display 目录**  示例来源于  [TFT_eSPI](https://github.com/Bodmer/TFT_eSPI/tree/master/examples) \n- **lvgl 目录** 示例来源于  [lvgl](https://github.com/lvgl/lvgl/tree/master/examples)  \n- **radio 目录** 示例来源于  [RadioLib](https://github.com/jgromes/RadioLib/tree/master/examples/SX126x) \n- **peripheral 目录** 示例来源于 [XPowersLib](https://github.com/lewisxhe/XPowersLib/tree/master/examples) \u0026 [SensorsLib](https://github.com/lewisxhe/SensorsLib/tree/master/examples) \n\n\n\u003ch2 align = \"left\"\u003e5️⃣ ESP32 basic examples \u003c/h2\u003e\n\n- [BLE Examples](https://github.com/espressif/arduino-esp32/tree/master/libraries/BLE)\n- [WiFi Examples](https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFi)\n- [SPIFFS Examples](https://github.com/espressif/arduino-esp32/tree/master/libraries/SPIFFS)\n- [OTA Examples](https://github.com/espressif/arduino-esp32/tree/master/libraries/ArduinoOTA)\n- [FFat Examples](https://github.com/espressif/arduino-esp32/tree/master/libraries/FFat)\n- 更多esp32示例,请在这里查看 [arduino-esp32-libraries](https://github.com/espressif/arduino-esp32/tree/master/libraries)\n\n\n\u003ch2 align = \"left\"\u003e6️⃣ FAQ \u003c/h2\u003e\n\n1. 无法上传示例\n   1. 确保T-Watch已经开机,可以按照下面方法进行查看,打开电脑设备管理器,查看端口，插入USB端口到电脑，显示了新的COM设备，则已经开机，如果没有显示，则按压表冠上的按键一秒，然后会弹出设备端口,此时点击上传\n\n2. USB端口在电脑中不断闪现\n* 这是程序运行异常,或者是选择了错误的配置,esp32不断重启导致的现象,这时只能将手表手动进入下载模式才能解决不能上传的问题\n请遵顼下面的步骤操作\n  1. 拆开后盖\n  2. 插入Micro-USB\n  3. 打开Windows设备管理器\n  4. 长按手表表冠,直到 Windows COM 端口中不出现 USB 的设备\n  5. 按压下图按键保持按压\n   ![](./images/BUTTON.jpg)\n  6. 按压表冠按钮一秒\n  7. 此时COM端口则固定\n  8. ArduinoIDE 中选择Port\n  9.  点击上传\n\n\n3. 在哪里查询引脚定义?\n   1. 看[这里](./src/utilities.h)\n4. 上传草图之后屏幕没有显示?\n   1. 请查看[Arduino IDE Quick Start]()第四行\n5. 电源域\n   | Power Domain | Role                          |\n   | ------------ | ----------------------------- |\n   | ALDO1        | RTC backup battery (3.1-3.3v) |\n   | ALDO2        | Backlight                     |\n   | ALDO3        | 3V3 for FT6336 and st7889     |\n   | ALDO4        | SX1262                        |\n   | BLDO2        | DRV2605 Enable pin            |\n   | DC1          | ESP32 3V3                     |\n   | VRTC         | Nothing                       |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshpat-devv%2Ft-watchs3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshpat-devv%2Ft-watchs3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshpat-devv%2Ft-watchs3/lists"}