1"""
2Testing spl06 python driver
3
4The below i2c configuration is needed in your board.json.
5"spl06": {
6  "type": "I2C",
7  "port": 1,
8  "addrWidth": 7,
9  "freq": 400000,
10  "mode": "master",
11  "devAddr": 119
12}
13"""
14
15from spl06 import SPL06
16
17print("Testing spl06 ...")
18spl06Dev = SPL06()
19spl06Dev.open("spl06")
20spl06Dev.init()
21print("spl06 init finished")
22
23id = spl06Dev.getID()
24print("getID: " + str(id))
25
26spl06Dev.spl06_getdata()
27
28spl06Dev.close()
29
30print("Test spl06 success!")
31