Skip to content

Commit 293f4d5

Browse files
Melissa LeBlanc-WilliamsMelissa LeBlanc-Williams
Melissa LeBlanc-Williams
authored and
Melissa LeBlanc-Williams
committed
Added ADXL343 stub class
1 parent 487ee5b commit 293f4d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

adafruit_adxl34x.py

100644100755
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,3 +399,13 @@ def _config_iterrupt_register(self, register, value):
399399
self._write_register_byte(_REG_INT_ENABLE, 0x0) # disable interrupts for setup
400400
self._write_register_byte(register, value)
401401
self._write_register_byte(_REG_INT_ENABLE, active_interrupts)
402+
403+
class ADXL343(ADXL345):
404+
"""Stub for the ADXL343 3 axis accelerometer
405+
406+
:param ~busio.I2C i2c_bus: The I2C bus the ADXL345 is connected to.
407+
:param address: The I2C device address for the sensor. Default is ``0x53``.
408+
409+
"""
410+
def __init__(self, i2c, address=_ADXL345_DEFAULT_ADDRESS):
411+
super().__init__(i2c, address)

0 commit comments

Comments
 (0)