Renamed the C++ implementation files to match the component folder naming: - lsm6ds.h -> lsm6ds_base.h - lsm6ds.cpp -> lsm6ds_base.cpp Updated all includes: - lsm6ds_base/lsm6ds_base.cpp: Updated self-include - lsm6ds_i2c/lsm6ds_i2c.h: Updated to include lsm6ds_base.h - lsm6ds_spi/lsm6ds_spi.h: Updated to include lsm6ds_base.h Fixed test file: - tests/lsm6ds_test.yaml: Updated sensor platforms to use lsm6ds_i2c and lsm6ds_spi This ensures all files follow consistent naming conventions with the _base suffix.
44 lines
606 B
YAML
44 lines
606 B
YAML
esphome:
|
|
name: lsm6ds_test
|
|
|
|
esp32:
|
|
board: esp32dev
|
|
framework:
|
|
type: arduino
|
|
|
|
i2c:
|
|
sda: 21
|
|
scl: 22
|
|
|
|
spi:
|
|
clk_pin: 18
|
|
mosi_pin: 23
|
|
miso_pin: 19
|
|
|
|
lsm6ds_i2c:
|
|
id: my_lsm6ds_i2c
|
|
address: 0x6A
|
|
|
|
lsm6ds_spi:
|
|
id: my_lsm6ds_spi
|
|
cs_pin: 5
|
|
|
|
sensor:
|
|
- platform: lsm6ds_i2c
|
|
lsm6ds_id: my_lsm6ds_i2c
|
|
accel_x:
|
|
name: "I2C Accel X"
|
|
gyro_x:
|
|
name: "I2C Gyro X"
|
|
temperature:
|
|
name: "I2C Temp"
|
|
|
|
- platform: lsm6ds_spi
|
|
lsm6ds_id: my_lsm6ds_spi
|
|
accel_x:
|
|
name: "SPI Accel X"
|
|
gyro_x:
|
|
name: "SPI Gyro X"
|
|
temperature:
|
|
name: "SPI Temp"
|