Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit eb3f45b

Browse files
committed
fix pysense
1 parent f7b18ac commit eb3f45b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shields/pysense_1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import time
1414
import pycom
15-
from pysense import Pysense
15+
from pycoproc_1 import Pycoproc
1616
import machine
1717

1818
from LIS2HH12 import LIS2HH12
@@ -23,7 +23,7 @@
2323
pycom.heartbeat(False)
2424
pycom.rgbled(0x0A0A08) # white
2525

26-
py = Pysense()
26+
py = Pycoproc(Pycoproc.PYSENSE)
2727

2828
mp = MPL3115A2(py,mode=ALTITUDE) # Returns height in meters. Mode may also be set to PRESSURE, returning a value in Pascals
2929
print("MPL3115A2 temperature: " + str(mp.temperature()))

0 commit comments

Comments
 (0)