We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b18ac commit eb3f45bCopy full SHA for eb3f45b
shields/pysense_1.py
@@ -12,7 +12,7 @@
12
13
import time
14
import pycom
15
-from pysense import Pysense
+from pycoproc_1 import Pycoproc
16
import machine
17
18
from LIS2HH12 import LIS2HH12
@@ -23,7 +23,7 @@
23
pycom.heartbeat(False)
24
pycom.rgbled(0x0A0A08) # white
25
26
-py = Pysense()
+py = Pycoproc(Pycoproc.PYSENSE)
27
28
mp = MPL3115A2(py,mode=ALTITUDE) # Returns height in meters. Mode may also be set to PRESSURE, returning a value in Pascals
29
print("MPL3115A2 temperature: " + str(mp.temperature()))
0 commit comments