Remove unused _config_interrupt_register function
per @siddacious in #9
This commit is contained in:
parent
6489ced528
commit
45b1c2875f
1 changed files with 0 additions and 6 deletions
|
|
@ -394,12 +394,6 @@ class ADXL345:
|
|||
with self._i2c as i2c:
|
||||
i2c.write(self._buffer, start=0, end=2)
|
||||
|
||||
def _config_interrupt_register(self, register, value):
|
||||
active_interrupts = self._read_register_unpacked(_REG_INT_ENABLE)
|
||||
self._write_register_byte(_REG_INT_ENABLE, 0x0) # disable interrupts for setup
|
||||
self._write_register_byte(register, value)
|
||||
self._write_register_byte(_REG_INT_ENABLE, active_interrupts)
|
||||
|
||||
class ADXL343(ADXL345):
|
||||
"""
|
||||
Stub class for the ADXL343 3-axis accelerometer
|
||||
|
|
|
|||
Loading…
Reference in a new issue