That's be awesome, thanks!
This is the form I'm writing most device drivers in now, if it helps: https://github.com/espruino/EspruinoDocs/blob/master/devices/BH1745.js
It seems to work pretty well for most stuff.
Generally to develop, I either:
hope that helps!
There's a little error in BH1745.js var MEASUREMENT_TIMES = [ 160,320,640,1280,1560,5120 ]. 1560 should be 2560 i think.
© Espruino, powered by microcosm.
Report a problem