A lot of the simple drivers for hardware are actually in the jswrap_bangle.c file linked above - which handles most bangle-related stuff, like the Bangle JS class. Graphics/HRM drivers are elsewhere.
Some JS (for menus, prompts) is in Espruino/libs/js but a lot of the OS logic is written in JS in the BangleApps repo: https://github.com/espruino/BangleApps
Specifically the boot and settings apps which are always loaded onto the watch
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
A lot of the simple drivers for hardware are actually in the
jswrap_bangle.c
file linked above - which handles most bangle-related stuff, like theBangle
JS class. Graphics/HRM drivers are elsewhere.Some JS (for menus, prompts) is in
Espruino/libs/js
but a lot of the OS logic is written in JS in the BangleApps repo: https://github.com/espruino/BangleAppsSpecifically the
boot
andsettings
apps which are always loaded onto the watch