Of course there needs to be a delineation between public constants needed for configuration (eg. tsl.C.address.FLOAT) and private constants used internally.
Alternatively, to use a better way of configuring than using a bunch of pseudo-enums.
BTW, one thing I did notice (but didn't have time to investigate last night) was the problem of chaining calls, eg.
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.
Of course there needs to be a delineation between public constants needed for configuration (eg. tsl.C.address.FLOAT) and private constants used internally.
Alternatively, to use a better way of configuring than using a bunch of pseudo-enums.
BTW, one thing I did notice (but didn't have time to investigate last night) was the problem of chaining calls, eg.
rather than individual statements. The interpreter (or IDE... can't remember which) seemed to bork on the syntax.