# My-TTGO-Watch
**Repository Path**: SenCheng/My-TTGO-Watch
## Basic Information
- **Project Name**: My-TTGO-Watch
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: GPL-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-10-14
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# My-TTGO-Watch
A smartwatch based on ESP32 from LilyGo. Currently under development.
# Telegram chatgroup
Telegram chatgroup is here:
https://t.me/TTGO_Watch
# Install
Clone this repository and open it with platformIO. Build and upload. On a terminal in vscode you can do it with
```bash
pio run -t upload
```
or simple press "build and upload" in platformIO.
# known issues
* the webserver crashes the ESP32 really often
* the battery indicator is not accurate, rather a problem with the power management unit ( axp202 )
* from time to time the esp32 crashes accidentally
* and some other small things
# how to use
## weather app
On startup you see the main screen (time tile). It show the time and the current weather (if correct configure). Now you can swipe with you fingers up, down, left and right between the four main screens. The four screens are organized in time, apps, note and setup tile.
For the weather app you need an openweather.com api-id. http://openweathermap.org/appid is a good starting point.
## bluetooth
The bluetooth notification work with [gadgetbridge](https://gadgetbridge.org) very well. But keep in mind, bluetooth in standby reduces the battery runtime. In connection with [OsmAnd](https://osmand.net) the watch can also be used for navigation. Please use the osmand app, otherwise a lot of messages will be displayed.
# Forks that are recommended
[FantasyFactory](https://github.com/FantasyFactory/My-TTGO-Watch)
[NorthernDIY](https://github.com/NorthernDIY/My-TTGO-Watch)
# for the programmers
Internal RAM is very limited, use PSRAM as much as possible. When you work with ArduinoJson, include this
```#include "hardware/json_psram_allocator.h"```
and create your json with
```SpiRamJsonDocument doc( 1000 );```
to move your json into PSRAM, here is enough RAM for all the crazy stuff you will do. And use
```ps_malloc(), ps_calloc() and ps_realloc()```
as often as possible.
And one very important thing: Do not talk directly to the hardware!
## Sound
To play sounds from the inbuild speakers use `hardware/sound.h`:
```
#include "hardware/sound.h"
[...]
// MP3 from SPIFFS:
// void sound_play_spiffs_mp3( const char *filename );
// example:
sound_play_spiffs_mp3( "/sound.mp3" )
// or WAV from PROGMEM via
//void sound_play_progmem_wav( const void *data, uint32_t len );
```
There is a configuration tile to enable/disable all sound output and set the global volume.
# how to make a screenshot
The firmware has an integrated webserver. Over this a screenshot can be triggered. The image has the format RGB565 and can be read with gimp. From bash it look like this
```bash
wget x.x.x.x/shot ; wget x.x.x.x/screen.565
```
# Interface











# Contributors
Special thanks to the following people for their help:
[5tormChild](https://github.com/5tormChild)
[bwagstaff](https://github.com/bwagstaff)
[chrismcna](https://github.com/chrismcna)
[datacute](https://github.com/datacute)
[jakub-vesely](https://github.com/jakub-vesely)
[joshvito](https://github.com/joshvito)
[JoanMCD](https://github.com/JoanMCD)
[NorthernDIY](https://github.com/NorthernDIY)
[rnisthal](https://github.com/rnisthal)
[paulstueber](https://github.com/paulstueber)
[ssspeq](https://github.com/ssspeq)
and the following projects:
[ArduinoJson](https://github.com/bblanchon/ArduinoJson)
[AsyncTCP](https://github.com/me-no-dev/AsyncTCP)
[ESP32SSDP](https://github.com/luc-github/ESP32SSDP)
[ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer)
[LVGL](https://github.com/lvgl)
[TFT_eSPI](https://github.com/Bodmer/TFT_eSPI)
[TTGO_TWatch_Library](https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library)
[ESP8266Audio](https://github.com/earlephilhower/ESP8266Audio)
[pubsubclient](https://github.com/knolleary/pubsubclient)
Every Contribution to this repository is highly welcome! Don't fear to create pull requests which enhance or fix the project, you are going to help everybody.
If you want to donate to the author then you can buy me a coffee.