Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete unused _config_{iterrupt/interrupt}_register method #9

Merged
merged 2 commits into from
Sep 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions adafruit_adxl34x.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,6 @@ def _write_register_byte(self, register, value):
with self._i2c as i2c:
i2c.write(self._buffer, start=0, end=2)

def _config_iterrupt_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
Expand Down