matthiazzz - The current adxl345 component in ESPHome relies on multiple external Adafruit libraries (Adafruit Unified Sensor, Adafruit BusIO, Adafruit ADXL345). This causes unnecessary dependencies, compilation overhead, and sometimes incompatibilities when used with tca9548a multiplexers.

I modified the component to remove all Adafruit library dependencies and instead use a lightweight, self-contained ESPHome driver for ADXL345. After these changes, multiple ADXL345 sensors can be used in combination with a TCA9548A I²C multiplexer without conflicts.
This commit is contained in:
John Dillenburg
2025-09-06 15:38:59 -05:00
parent 1176f8d9f9
commit 7dc846a6eb
31 changed files with 713 additions and 2289 deletions

View File

@@ -53,7 +53,8 @@ esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
level: WARN
@@ -197,11 +198,11 @@ number:
- script.execute: start_motor_if_needed
light:
- platform: neopixelbus
variant: WS2812
- platform: esp32_rmt_led_strip
chipset: WS2811
pin: GPIO8
num_leds: 1
type: GRB
rgb_order: GRB
restore_mode: RESTORE_DEFAULT_ON
id: onboard_led
name: "Status light"