# LilyGo T-Wristband 初體驗 ###### tags: `ESP32` `IoT` `LilyGO` `TTGO` ## 機台規格 因為版本有四種,這邊直接附上[GITHUB REPO連結](https://github.com/Xinyuan-LilyGO/LilyGo-T-Wristband) ## 有線連接方法  ## 前置準備 ### 查看sensor版本 在文件中他有說到: > T-Wristband has two types of sensors, LSM9DS1 and MPU9250 sensors. How to distinguish the version you bought, please see the upper right part of the board below to distinguish > T-Wristband有兩種sensor,分別是`LSM9DS1`和`MPU9250`,你可以看主板右上角確認。 |sensor顯示文字|版號| |---|---| |MP92|MPU9250| |LS9D|LSM9DS1| 問題是**右上角的哪裡啊**。之後才發現是上面的超小顆模組上有寫,還是超小一個。我花了一段時間看了又看,手機放大10倍、加上打光才拍到。  ### 查看連接板版本 直接往通訊板看,上面會寫他的版本是多少,依照對應的版號去安裝他的驅動程式。 * [CP21系列](https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers) * [CH340系列](http://www.wch-ic.com/search?q=ch340&t=downloads)  ### 安裝所需函式庫 將下方兩份函式庫先下載下來並解壓縮。 * [TFT_eSPI](https://github.com/Bodmer/TFT_eSPI) * [PCF8563_Library](https://github.com/lewisxhe/PCF8563_Library) 接著開始配置TFT文件,若是使用libdeps目錄裡的文件,這階段可以不用做。 * 進到剛剛解壓縮的 `TFT_eSPI` 文件夾裡(有可能叫 `TFT_eSPI-master` ) * 找到 `User_Setup_Select.h` 文件,利用編輯程式打開 * 找到 `#include <User_Setup.h>` 這一行,註解掉 * 找到 `#include <User_Setups/Setup26_TTGO_T_Wristband.h>`,取消註解 * 儲存檔案 最後再將兩份函式庫加入到Arduino的函式庫裡,匯入方法也和其他Arduino第三方函式庫一樣,用資料夾匯入。 ## 開始在Arduino上使用 開始前要注意以下幾個: * 板子請選ESP32 Dev Module * PSRAM請設定成Disable(T-Wristband没有PSRAM) * 因為上者,也意味著跟PSRAM有關的function都不能用
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up