Try   HackMD

LilyGo T-Wristband 初體驗

tags: ESP32 IoT LilyGO TTGO

機台規格

因為版本有四種,這邊直接附上GITHUB REPO連結

有線連接方法

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

前置準備

查看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,分別是LSM9DS1MPU9250,你可以看主板右上角確認。

sensor顯示文字 版號
MP92 MPU9250
LS9D LSM9DS1

問題是右上角的哪裡啊。之後才發現是上面的超小顆模組上有寫,還是超小一個。我花了一段時間看了又看,手機放大10倍、加上打光才拍到。

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

查看連接板版本

直接往通訊板看,上面會寫他的版本是多少,依照對應的版號去安裝他的驅動程式。

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

安裝所需函式庫

將下方兩份函式庫先下載下來並解壓縮。

接著開始配置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都不能用