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