Hi, there's not actually a problem - the module just isn't designed to export the constants. In the module the variable C is defined, but it isn't assigned to exports.C so you can't use it directly.
For simple tests it's probably best to just copy the value out of the module
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.
Hi, there's not actually a problem - the module just isn't designed to export the constants. In the module the variable C is defined, but it isn't assigned to exports.C so you can't use it directly.
For simple tests it's probably best to just copy the value out of the module