MCPcopy Index your code
hub / github.com/enaon/eucWatch

github.com/enaon/eucWatch @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,278 symbols 2,830 edges 612 files 40 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Notice: There are two problems one might face when buying a watch to use with this git. 1. The p8 line is changing the CPU used, there is a model called GAM that no longer uses the NRF. P22A/P22B/P22C/P22C1/Pinetime are valid replacements. (P22D is NOT compatible yet). P22D and P22B1 are now compatible, but need loading extra core and handler files after installation is done for the display to work. For pinetime use the p22 step4 image, and load the pinetime core and handler files after installation is done to enable the side button. 2. The antenna of the p8 might not be good enouph for a solid connection to the EUC. It will work but is a bit random, only 3 out of 10 that I got my hand on were good enough to not need an antenna change., if not perfect you may need to order another one or change the antenna. That requires opening up the watch, and if done carefully it barelly leaves any visible marks. P22C has a better signal than the p8. 3. Some P8 watches, version TON5, are mising a crystal, that makes them currently incompatible with daFlasher. They can still be flashed, but that requires opening up the watch.. @fanoush made an TON5 compatible 1st step bootloader, use the file step1-TON5-xx at the first step. . Atc1441 made the 1st step file compatible with all models, so this is no longer an issue.

Espruino Installation on P8 - P22A/B/C/D/B1/C1 - pinetime how-to

Loader version:

Web loader for the P8 - P22A/B/C/D/B1/C1 - pinetime

Web loader for the DK08 (old)

Web loader for the DSD6 (old)

Manual scripts install:

Files for P8 watch are here. To be used with the flash enabled Espruino image build by @fanoush.

Enter this in left hand side (webide) to enable flash(one time only) before uploading. (the loader version will do this automatically when an install option from the installer tab is selected)

var spi=new SPI();spi.setup({sck:D2,mosi:D3,miso:D4,mode:0}); spi.send([0xab],D5); //wake

Credits

@ATC1441, who made over the air hacking of the P8 watch possible. He wrote the DaFlasher playstore app to make the proccess easy. He also made the adruino based ATCWatch custom firmware to run on the P8 watch. More info on DaFlasher here

@Fanoush, who makes the Espruino builds/bootloader and shares his knowledge. Among other things, he wrote the inline c screen/spi-flash shared bus driver used in this project, and made an sdk12 bootloader to support secure BLE connections. More info on the P8 watch here

@gfwilliams, who is the man behind Espruino. This project uses the Espruino app loader and many code snippets from bangle.js source code. More info on Espruino here

Links

https://www.youtube.com/watch?v=mjdcSiPKgE4

image

photo from TheDuke

Photos

Core symbols most depended-on inside this repo

buzzer
called by 1854
DSD6/core/sys-Copy.js
col
called by 390
dated/P8-dev/handler/handler.js
col
called by 121
DK08/handler/handler.js
reg
called by 108
Loader/core/lib/espruinotools.js
reg
called by 108
Loader/core.old/lib/espruinotools.js
image
called by 45
dated/P8-dev/m_image/m_image.js
cmd
called by 43
dated/Magic/init/init.js
showToast
called by 40
Loader/core/js/ui.js

Shape

Function 1,278

Languages

TypeScript100%
Python1%

Modules by API surface

Loader/core/lib/heatshrink.js148 symbols
Loader/core.old/lib/heatshrink.js148 symbols
Loader/core/lib/espruinotools.js122 symbols
Loader/core.old/lib/espruinotools.js122 symbols
Loader/core/js/index.js33 symbols
Loader/core.old/js/index.js32 symbols
dated/euc-dash-main/js/begode.js24 symbols
dated/euc-dash-main/js/kingsong.js22 symbols
Loader/core/lib/marked.min.js20 symbols
Loader/core.old/lib/marked.min.js20 symbols
Loader/core/lib/imageconverter.js15 symbols
dated/euc-dash-main/js/veteran.js14 symbols

For agents

$ claude mcp add eucWatch \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact