mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Add BMI160 support (#5143)
* Add BMI160 support * BMI160: use set_timeout for delay * Add support for old compilers Fix "warning: missing terminating ' character" * Increase power-on delay to be more conservative * Add helper for reading little-endian data over i2c * Replace configuration names with globals Note: for testing with external components, you will need to comment out the import & define your own CONF_GYROSCOPE_X, etc, in this file * Improve icons * Fix tests & lint
This commit is contained in:
@@ -915,6 +915,23 @@ sensor:
|
||||
temperature:
|
||||
name: MPU6886 Temperature
|
||||
i2c_id: i2c_bus
|
||||
- platform: bmi160
|
||||
address: 0x68
|
||||
acceleration_x:
|
||||
name: BMI160 Accel X
|
||||
acceleration_y:
|
||||
name: BMI160 Accel Y
|
||||
acceleration_z:
|
||||
name: BMI160 Accel z
|
||||
gyroscope_x:
|
||||
name: BMI160 Gyro X
|
||||
gyroscope_y:
|
||||
name: BMI160 Gyro Y
|
||||
gyroscope_z:
|
||||
name: BMI160 Gyro z
|
||||
temperature:
|
||||
name: BMI160 Temperature
|
||||
i2c_id: i2c_bus
|
||||
- platform: mmc5603
|
||||
address: 0x30
|
||||
field_strength_x:
|
||||
|
||||
Reference in New Issue
Block a user