mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 21:02:20 +01: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:
@@ -298,6 +298,9 @@ CONF_GLYPHS = "glyphs"
|
||||
CONF_GPIO = "gpio"
|
||||
CONF_GREEN = "green"
|
||||
CONF_GROUP = "group"
|
||||
CONF_GYROSCOPE_X = "gyroscope_x"
|
||||
CONF_GYROSCOPE_Y = "gyroscope_y"
|
||||
CONF_GYROSCOPE_Z = "gyroscope_z"
|
||||
CONF_HARDWARE_UART = "hardware_uart"
|
||||
CONF_HEAD = "head"
|
||||
CONF_HEARTBEAT = "heartbeat"
|
||||
@@ -867,6 +870,9 @@ ICON_FLOWER = "mdi:flower"
|
||||
ICON_GAS_CYLINDER = "mdi:gas-cylinder"
|
||||
ICON_GAUGE = "mdi:gauge"
|
||||
ICON_GRAIN = "mdi:grain"
|
||||
ICON_GYROSCOPE_X = "mdi:axis-x-rotate-clockwise"
|
||||
ICON_GYROSCOPE_Y = "mdi:axis-y-rotate-clockwise"
|
||||
ICON_GYROSCOPE_Z = "mdi:axis-z-rotate-clockwise"
|
||||
ICON_HEATING_COIL = "mdi:heating-coil"
|
||||
ICON_KEY_PLUS = "mdi:key-plus"
|
||||
ICON_LIGHTBULB = "mdi:lightbulb"
|
||||
|
Reference in New Issue
Block a user