Guest User

Untitled

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