Xinyuan-LilyGO / TTGO_TWatch_Library

MIT License
855 stars 282 forks source link

platformio.ini config file #238

Open JpEncausse opened 1 month ago

JpEncausse commented 1 month ago

I'd like to run this project and exemples with Platform.io like other Lilygo projects (I see some issues related to this topic). Can you add an official platformio.ini to this repository in order to be able to run exemples ? What is the factory exemple ?

I tried

[platformio]
src_dir = examples/BasicUnit/Motor

[env]
monitor_speed = 115200

[env:ttgo-t-watch]
platform = espressif32
framework = arduino
board = ttgo-t-watch

build_flags =
  -DBOARD_HAS_PSRAM
  -DARDUINO_USB_CDC_ON_BOOT=1

lib_deps =
  TTGO TWatch Library

I uncomment #define LILYGO_WATCH_2020_V3 But I got error LilyGoWatch.h: No such file or directory for instance