-
• #2
So even the hardware drivers are in javascript?
-
• #4
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
Question one
https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS2.py
So here is the list of configurations for the Bangle 2. I'm just wondering were are the actual drivers for this located at. For example there's this line "'device' : 'CST816S'". So there must be a CST816S c class somewhere right?
Question Two
Where's the code to handle the the Bangle 2 OS watch. The Espruino.js is just a runtime to make javascript work on the embedded device. So i'm guessing there's also a repo for the code for the watch right?
This is a very cool project. Just trying to figure out how it works :)