Added ADXL343 stub class
This commit is contained in:
parent
487ee5b96e
commit
293f4d5948
1 changed files with 10 additions and 0 deletions
10
adafruit_adxl34x.py
Normal file → Executable file
10
adafruit_adxl34x.py
Normal file → Executable file
|
|
@ -399,3 +399,13 @@ class ADXL345:
|
|||
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 for the ADXL343 3 axis accelerometer
|
||||
|
||||
:param ~busio.I2C i2c_bus: The I2C bus the ADXL345 is connected to.
|
||||
:param address: The I2C device address for the sensor. Default is ``0x53``.
|
||||
|
||||
"""
|
||||
def __init__(self, i2c, address=_ADXL345_DEFAULT_ADDRESS):
|
||||
super().__init__(i2c, address)
|
||||
|
|
|
|||
Loading…
Reference in a new issue