My personal fork of wasp-os, the MicroPython-based OS for smartwatches
Go to file
2020-01-28 21:27:02 +00:00
bootloader@6e5c33824e bootloader: Adopt latest bootloader 2020-01-28 21:23:48 +00:00
manifest manifest: Enable highest optimization by default 2020-01-28 21:16:22 +00:00
micropython@b6f0dee43e micropython: Update for native code gen fixes 2020-01-28 18:45:27 +00:00
res bootloader: Adopt latest bootloader 2020-01-28 21:23:48 +00:00
tools tools: rle_encode: Experimental color encoder 2020-01-28 21:19:06 +00:00
wasp wasp: drivers: st7789: Remove redunant delay 2020-01-28 21:19:36 +00:00
.gitignore gitignore: Ignore vim swap files 2020-01-28 21:27:02 +00:00
.gitmodules Initial revision 2020-01-14 21:32:59 +00:00
Makefile Makefile: Shortcut to help update the bootloader using BMP 2020-01-28 21:25:17 +00:00
README.md wasp: st7789: Add a simple proof-of-concept display driver 2020-01-21 22:10:50 +00:00
TODO.md TODO: Make compatible with the GFM tasklist extension 2020-01-28 18:45:27 +00:00

Watch Application System in Python

Despite the grand ambitions of the name, currently this repo simply combines a bootloader, derived from the Adafruit NRF52 bootloader, with MicroPython. Both have been ported to Pine64 PineTime and the Desay DS-D6 fitness band.

Try:

make submodules
make softdevice
make -j `nproc` all
make flash

Then use nRFConnect (for Android) to program micropython.zip.

At the end of this process your watch may look dead but, if it works, you will be able to use the Nordic UART Service to access the MicroPython REPL.

Drivers are, for the most part, an exercise for the reader but there is a proof-of-concept display driver. To experiment try:

import pinetime, time
tft = pinetime.st7789()
tft.white()
time.sleep(2)
tft.black()