Thanks for the input! Really weird, tried almost exactly what you recommend before posting, but no luck.
A screenshot is attached of the code + the REPL result to show exactly what I tried to do.
But no luck. Looks like the require-d BME680 is just an empty object (look at the print-ed result and the autocomplete result just at the top of the highlight.
I did import the DHT module only to verify that require does work. And it does work: dht.connect is indeed a function. but the BME680 is empty???
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.
Thanks for the input! Really weird, tried almost exactly what you recommend before posting, but no luck.
A screenshot is attached of the code + the REPL result to show exactly what I tried to do.
But no luck. Looks like the
require
-d BME680 is just an empty object (look at theprint
-ed result and the autocomplete result just at the top of the highlight.I did import the DHT module only to verify that require does work. And it does work:
dht.connect
is indeed a function. but the BME680 is empty???1 Attachment