1 2/* 3Please add this section into app.json when run this script as app.js. 4This configuration is designed for haas100 edu k1. 5"qlc5883": { 6 "type": "I2C", 7 "port": 1, 8 "addrWidth": 7, 9 "freq": 400000, 10 "mode": "master", 11 "devAddr": 13 12} 13*/ 14 15console.log('testing qlc5883...'); 16 17var qlc5883 = require('./qlc5883.js'); 18qlc5883.init("qlc5883"); 19 20qlc5883.qmc5883l_readHeading(); 21qlc5883.qmc5883l_readHeading(); 22qlc5883.qmc5883l_readHeading(); 23qlc5883.qmc5883l_readHeading(); 24 25qlc5883.deinit(); 26console.log("test qlc5883 success!"); 27 28 29 30 31