Code Monkey home page Code Monkey logo

wpos2's Introduction

A firmware for Lilygo T-Watch 2020 and S3 written in micropython

Requirements:

  • Micropython (with dummy bit SPI setting added in ports/esp32/machine_hw_spi.c if possible to maximize SPI speed)
  • st7789_mpy library
  • Frozen modules (ports/esp32/modules, or dont freeze them, im not your mom):
  • Compiling with T-Watch board folder for MPY from this repository

YOU CAN ALSO USE THE MODULES.TAR.GZ FILE IN THIS REPOSITORY

Installing:

  • Go to micropython folder from this repository and follow instructions
  • Copy ALL the .py, .fw, and .gz files from this repository to the watch, keeping the folders (CopyToWatch.sh might do it all for you)
  • devices.json is optional, look into Hardware.py for why (but might come handy to you)

Modifying for other platforms

For other esp32 platforms, all the code that is platform-specific should be in Hardware.py (make yourself a new Hardware.py), with the exception of the blit command in render thread in Kernel.py (FOR NOW) For a different MCU, it should be mostly the same with more exceptions (stuffs like timers may not match, amount of ram, random platform-specific functions i forgot in the code...)

Notes

Dont expect fast display on anything but T-WATCH S3.

I've also capped the FPS to 20 by default, there is a way to uncap it from applications (but be aware that blitting the full screen takes at minimum about 40ms on T-WATCH 2020 V1)

T-Watch 2020 V1 uses about 1.6ma in light sleep with current code

Currently Only T-Watch V1, T-Watch V2, and T-Watch S3 have been tested, I do not own any V3.

Demo of the render system

badapple.webm

This uses 2 threads in the kernel and one to feed data and time within a program

wpos2's People

Contributors

vyndragon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.