We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 767e8e3 commit 572d21aCopy full SHA for 572d21a
adafruit_mpl115a2.py
@@ -50,10 +50,10 @@
50
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MPL115A2.git"
51
52
# pylint: disable=bad-whitespace
53
-_MPL115A2_ADDRESS = (0x60)
54
-_MPL115A2_REGISTER_PRESSURE_MSB = (0x00)
55
-_MPL115A2_REGISTER_A0_COEFF_MSB = (0x04)
56
-_MPL115A2_REGISTER_STARTCONVERSION = (0x12)
+_MPL115A2_ADDRESS = const(0x60)
+_MPL115A2_REGISTER_PRESSURE_MSB = const(0x00)
+_MPL115A2_REGISTER_A0_COEFF_MSB = const(0x04)
+_MPL115A2_REGISTER_STARTCONVERSION = const(0x12)
57
# pylint: enable=bad-whitespace
58
59
class MPL115A2:
examples/mpl115a2_simpletest.py
@@ -9,4 +9,4 @@
9
10
while True:
11
print("Pressure: {} Temperature: {}".format(mpl.pressure, mpl.temperature))
12
- time.sleep(1)
+ time.sleep(1)
0 commit comments