So, just manually copy-pasted the module's code, renamed exports to bmeManual, and uploaded to the Pixl.JS. And it works, and the measured values feel realistic (see the screenshot).
Edit: it does work both with the minified and non-minified code if I just copy-paste it. But doesn't work with require-ing the code. Don't know what's going on...
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, just manually copy-pasted the module's code, renamed
exports
tobmeManual
, and uploaded to the Pixl.JS. And it works, and the measured values feel realistic (see the screenshot).Edit: it does work both with the minified and non-minified code if I just copy-paste it. But doesn't work with
require
-ing the code. Don't know what's going on...1 Attachment