Skip to content

Commit 7128a9a

Browse files
kattnitannewt
authored andcommitted
Removed unnecessary lis3dh lines from init
1 parent 1dcb7dd commit 7128a9a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

adafruit_circuitplayground/express.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ def __init__(self):
116116
self._lis3dh = adafruit_lis3dh.LIS3DH_I2C(self._i2c, address=0x19)
117117
self._lis3dh.range = adafruit_lis3dh.RANGE_8_G
118118

119-
# Enables FIFO stream mode and then sets it to stream mode.
120-
# TODO(tdicola): Replace this with code that doesn't call an internal (starts with _)
121-
# method. https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/issues/14
122-
# pylint: disable=protected-access
123-
self._lis3dh._write_register_byte(adafruit_lis3dh.REG_CTRL5, 0b01001000)
124-
self._lis3dh._write_register_byte(0x2E, 0b10000000)
125-
126119
@property
127120
def acceleration(self):
128121
"""Obtain data from the x, y and z axes.

0 commit comments

Comments
 (0)