It looks like a bug in the OPT3001 module, which I have now fixed. If you re-upload the code hopefully you won't get that error any more.
However it looks like the module itself hasn't been tested, so I'm afraid it may not work for you even it it does run.
Let us know what happens though - it looks promising from the numbers it is printing, so I may be able to make some tweaks at this end to fix it if it is broken.
© Espruino, powered by microcosm.
Report a problem