File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change
1
+ # See https://docs.pycom.io for more information regarding library specifics
2
+
1
3
from pysense import Pysense
2
4
from LIS2HH12 import LIS2HH12
3
5
from SI7006A20 import SI7006A20
4
6
from LTR329ALS01 import LTR329ALS01
5
7
from MPL3115A2 import MPL3115A2
6
8
7
9
py = Pysense ()
8
- pressure = MPL3115A2 (py )
9
- tempHum = SI7006A20 (py )
10
- ambientLight = LTR329ALS01 (py )
11
- acc = LIS2HH12 (py )
10
+ mp = MPL3115A2 (py ,mode = ALTITUDE ) # Returns height in meters. Mode may also be set to PRESSURE, returning a value in Pascals
11
+ si = SI7006A20 (py )
12
+ lt = LTR329ALS01 (py )
13
+ li = LIS2HH12 (py )
14
+
15
+ print (mp .temperature ())
16
+ print (mp .altitude ())
17
+ print (si .temperature ())
18
+ print (si .humidity ())
19
+ print (lt .light ())
20
+ print (li .acceleration ())
21
+ print (li .roll ())
22
+ print (li .pitch ())
23
+ print (li .yaw ())
24
+
25
+ print (py .read_battery_voltage ())
You can’t perform that action at this time.
0 commit comments