Tried to interface to a BME680 , but fails a rather strange way. Tried to use the example, but
var bme = require("BME680").connectI2C(i2c);
Errors at the
.connectI2C part: Function connectI2C not found!
If I just require in the module, like this
var bme = require("BME680");
I should be able to use it "on the left side", right? But can't, there is no connectI2c or connectSPI or BME680 properties on the
It does work if I require a DHT22. The connect function can be called from the REPL side.
Hardware: Pixl.Js, 2v00; the BME680 is connected thru I2C on A4 and A5. (on a pimoroni breakout board)
I2C and the module seems to work OK: Reading the module's JS code, found that there is a module Id, and I could read that Id without any problems.
The upload of the code does take a couple of seconds, there are no errors. Looked at the module's JS code, and should work. Or at least should do something, but does nothing. As if nothing is exported...
Anybody has any idea what might be the problem?