mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 02:02:51 +00:00
[apds9930] Add ambient light and proximity sensor (#13125)
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
co-authored by
J. Nick Koston
parent
132e9dac8b
commit
fa519cea64
@@ -0,0 +1,13 @@
|
||||
sensor:
|
||||
- platform: apds9930
|
||||
i2c_id: i2c_bus
|
||||
id: apds9930_sensor
|
||||
address: 0x39
|
||||
update_interval: 30s
|
||||
led_drive: 25ma
|
||||
proximity_gain: 4x
|
||||
ambient_light_gain: 16x
|
||||
illuminance:
|
||||
name: APDS9930 Illuminance
|
||||
proximity:
|
||||
name: APDS9930 Proximity
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
|
||||
apds9930: !include common.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
apds9930: !include common.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/rp2040-ard.yaml
|
||||
apds9930: !include common.yaml
|
||||
Reference in New Issue
Block a user