|
| 1 | +This guide is for people who want to manually configure the firmware settings via the PlatformIO IDE. |
| 2 | + |
| 3 | +!!! note |
| 4 | + |
| 5 | + This guide is not recommended for beginners please refer to the automatic version of this guide. |
| 6 | + |
| 7 | +## Requirements |
| 8 | +1. PlatformIO |
| 9 | + |
| 10 | +## WiFi and Time configuration |
| 11 | +Changes in ```src/osVariables/osVariables.cpp``` :- |
| 12 | + |
| 13 | +1. To configure your WiFi network enter your SSID (network name) in line 40 |
| 14 | +```const char* ssid = "yourSSID";``` (replace |
| 15 | +yourSSID with your network name) and in line 42 replace yourPassword with your network password ```const char* password = "yourPassword";``` |
| 16 | +2. To setup time enter the GMT offset of your region in line 46 ```const long gmtOffset_sec = 0;``` and daylight offset |
| 17 | +in line 48 ```const int daylightOffset_sec = 0;``` and make sure both of them are in seconds. If you can't get the time |
| 18 | +properly even after setting the GMT and daylight offset then you might have to change the URL of the NTP server to a URL |
| 19 | +which is closer to your location in line 44 ```const char* ntpServer = "pool.ntp.org";```. |
| 20 | +Below are a few common NTP server URLs:- |
| 21 | +<br> |
| 22 | + |
| 23 | +Area | HostName |
| 24 | +:-------------|:------------------------- |
| 25 | +Asia | asia.pool.ntp.org |
| 26 | +Europe | europe.pool.ntp.org |
| 27 | +North America | north-america.pool.ntp.org |
| 28 | +Oceania | oceania.pool.ntp.org |
| 29 | +South America | south-america.pool.ntp.org |
| 30 | + |
| 31 | +## Configuration for TQT pro N4R2 (Flash: 4MB, PSRAM: 2MB) |
| 32 | +Just upload the code without any changes to the ```platformio.ini``` file. It should look like this: |
| 33 | +<br> |
| 34 | +```ini title="platformio.ini" linenums="1" |
| 35 | +; PlatformIO Project Configuration File |
| 36 | + |
| 37 | + |
| 38 | +[platformio] |
| 39 | +boards_dir = ./board |
| 40 | +;default_envs = T-QT-Pro-N8 |
| 41 | +default_envs = T-QT-Pro-N4R2 |
| 42 | +description = Open source watch OS for ESP32 based watches |
| 43 | + |
| 44 | +;[env:T-QT-Pro-N8] |
| 45 | +[env:T-QT-Pro-N4R2] |
| 46 | + |
| 47 | +board = esp32-s3-t-qt-pro |
| 48 | +framework = arduino |
| 49 | +build_flags = |
| 50 | + -DBOARD_HAS_PSRAM |
| 51 | +lib_deps = |
| 52 | + lennarthennigs/Button2@^2.3.3 |
| 53 | + adafruit/Adafruit GFX Library@^1.11.11 |
| 54 | + adafruit/Adafruit MPU6050 @ ^2.0.3 |
| 55 | + adafruit/Adafruit Unified Sensor @ ^1.1.4 |
| 56 | +``` |
| 57 | + |
| 58 | +Note:- PlatformIO is currently assuming we have total 1MB of flash and not detecting the PSRAM. |
| 59 | + |
| 60 | + |
| 61 | +## Configuration for TQT pro N8 (Flash: 8MB, PSRAM: none) |
| 62 | +You will need to do some changes in the ```platformio.ini``` file before uploading the code. It should look like this: |
| 63 | +<br> |
| 64 | +```ini title="platformio.ini" linenums="1" |
| 65 | +; PlatformIO Project Configuration File |
| 66 | + |
| 67 | + |
| 68 | +[platformio] |
| 69 | +boards_dir = ./board |
| 70 | +default_envs = T-QT-Pro-N8 |
| 71 | +;default_envs = T-QT-Pro-N4R2 |
| 72 | +description = Open source watch OS for ESP32 based watches |
| 73 | + |
| 74 | +[env:T-QT-Pro-N8] |
| 75 | +;[env:T-QT-Pro-N4R2] |
| 76 | + |
| 77 | +board = esp32-s3-t-qt-pro |
| 78 | +framework = arduino |
| 79 | +build_flags = |
| 80 | +; -DBOARD_HAS_PSRAM |
| 81 | +lib_deps = |
| 82 | + lennarthennigs/Button2@^2.3.3 |
| 83 | + adafruit/Adafruit GFX Library@^1.11.11 |
| 84 | + adafruit/Adafruit MPU6050 @ ^2.0.3 |
| 85 | + adafruit/Adafruit Unified Sensor @ ^1.1.4 |
| 86 | +``` |
| 87 | + |
| 88 | +After configuring the firmware source code you can upload it to the watch. |
0 commit comments