1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add AS7341 spectral color sensor (#4331)

* Add support for AS7341 spectral color sensor.

* Run clang-format and clang-tidy.

* Post-review changes.

* Apply suggestions from code review

---------

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Morgan Robertson
2023-03-08 01:15:49 +00:00
committed by GitHub
parent 623e31ddee
commit bc28ea1fde
6 changed files with 554 additions and 0 deletions

View File

@@ -439,6 +439,32 @@ sensor:
state_topic: hi/me
retain: false
availability:
- platform: as7341
update_interval: 15s
gain: X8
atime: 120
astep: 99
f1:
name: F1
f2:
name: F2
f3:
name: F3
f4:
name: F4
f5:
name: F5
f6:
name: F6
f7:
name: F7
f8:
name: F8
clear:
name: Clear
nir:
name: NIR
i2c_id: i2c_bus
- platform: atm90e32
cs_pin: 5
phase_a: