Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Obniz = require("obniz");
- const obniz = new Obniz("obniz_ID");
- obniz.onconnect = async () => {
- const bme280 = obniz.wired("BME280", {vio:6, vcore:5, gnd:4, csb:3, sdi: 2, sck: 1, sdo:0 });
- await bme280.applyCalibration();
- const val = await bme280.getAllWait();
- console.log(val);
- }
Add Comment
Please, Sign In to add comment