An open API service indexing awesome lists of open source software.

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

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