external_components:
- source:
type: git
url: https://github.com/NonaSuomy/esphome
ref: lsm6ds_test_001
components: [lsm6ds]
refresh: always
i2c:
- id: bsp2_bus
sda: GPIO18
scl: GPIO19
frequency: 400kHz
lsm6ds:
id: imu_id
i2c_id: bsp2_bus
address: 0x6B
accel_range: 4G
gyro_range: 500DPS
accel_odr: 104HZ
gyro_odr: 104HZ
update_interval: 200ms
sensor:
- platform: lsm6ds
id: imu_id
accel_x:
id: accel_x
name: "Accel X"
accel_y:
id: accel_y
name: "Accel Y"
accel_z:
id: accel_z
name: "Accel Z"
gyro_x:
id: gyro_x
name: "Gyro X"
gyro_y:
id: gyro_y
name: "Gyro Y"
gyro_z:
id: gyro_z
name: "Gyro Z"
temperature:
id: imu_temp
name: "Temperature"