https://github.com/pulkin/mpy-twatch-config
Configuring peripherials of T-Watch 2020 for micropython
https://github.com/pulkin/mpy-twatch-config
axp202 esp32 firmware micropython python smart watch
Last synced: about 1 month ago
JSON representation
Configuring peripherials of T-Watch 2020 for micropython
- Host: GitHub
- URL: https://github.com/pulkin/mpy-twatch-config
- Owner: pulkin
- License: bsd-2-clause
- Created: 2021-05-22T21:31:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-22T22:56:50.000Z (about 5 years ago)
- Last Synced: 2025-06-10T21:12:04.956Z (about 1 year ago)
- Topics: axp202, esp32, firmware, micropython, python, smart, watch
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
mpy-twatch-config
=================
This repository contains `boot.py` for [T-Watch 2020](https://t-watch-document-en.readthedocs.io/en/latest/introduction/product/2020.html), programmable smart watch based on ESP32.
Applies to [micropython](https://micropython.org) firmware only.
What for
--------
- Charging parameters.
Default charging parameters are 4.2V / 500mA while the stock firmware [sets the latter](https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library/blob/396d5db84b1b450c9c92939902049c9658bfc048/src/TTGO.h#L1371) to 300mA.
To make sure high currents do not damage the battery this script sets the charging current to the minimal value 300mA.
How to use
----------
Copy `boot.py` to the board and the settings will apply on the next reboot.
```bash
rshell --port /dev/ttyUSB0 cp boot.py /pyboard/
```
Adjust the file as you need it.
License
-------
BSD 2-clause