gives some tokenization errors depending on whether or not I have minification turned on.
Disabling all options for minification now gives me
Uncaught Error: Function "getBusRaw" not found!
at line 1 col 25
const busVoltage = this.getBusRaw();
^
in function "getBusMilliVolts" called from line 158 col 37
console.log(ina219.getBusMilliVolts() / 1000 + 'V');
^
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.
I probably need help in fully converting this into a module.
Copy pasting into the left hand side as suggested in https://www.espruino.com/Writing+Modules works and I'm able to get the sample code working.
However, doing a
gives some tokenization errors depending on whether or not I have minification turned on.
Disabling all options for minification now gives me
I'm not really sure where I'm tripping up :(