So here is where i'm housing the code i'm working on. I haven't fully tested this but it shouldn't be far off from what I'm expecting.
Hardware drivers folder
So this branch is just working on the backlight. One thing you'll notice is i had to move around a decent amount of code. This is because there's so much stuff that's defined inside the "jswrap_bangle.c".
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.
So here is where i'm housing the code i'm working on. I haven't fully tested this but it shouldn't be far off from what I'm expecting.
Hardware drivers folder
So this branch is just working on the backlight. One thing you'll notice is i had to move around a decent amount of code. This is because there's so much stuff that's defined inside the "jswrap_bangle.c".
So i'm planning on there being 3 types of files.
Devices folder
Holds defines and will hold probably some simple setup function.
bangle_defines.h
Which holds all the enums from jswrap_bangle.c
It holds references to the global state of bangle. These are mostly timers and bangleState and flag.