mirror of https://github.com/arendst/Tasmota.git
Example rules added.
parent
33a8b0bd56
commit
563171e3a9
15
APDS-9960.md
15
APDS-9960.md
|
@ -47,6 +47,21 @@ The APDS-9960 chip (or breakout board) must be connected to the ESP8266 and the
|
|||
|
||||
![I2C GPIO configuration](https://raw.githubusercontent.com/arendst/arendst.github.io/master/media/wemos/wemos_sht30_config_marked.jpg)
|
||||
|
||||
### Example rules
|
||||
#### Power on light when ambient light is below 100 lux.
|
||||
`rule on APDS9960#Ambient<100 do power on endon on APDS9960#Ambient>110 do power off endon`
|
||||
|
||||
##### Control ON/OFF, brightness and color temperature with gestures
|
||||
`rule on APDS9960#Long do power toggle endon on APDS9960#Up do dimmer + endon on APDS9960#Down do dimmer - endon on APDS9960#Left do ct + endon on APDS9960#Right do ct - endon`
|
||||
```
|
||||
LONG: toggle ON/OFF
|
||||
UP: increase brightness
|
||||
DOWN: decrease brightness
|
||||
Left: increase color temperature
|
||||
Right: decrease color temperature
|
||||
```
|
||||
|
||||
|
||||
## Generally available types of breakout boards
|
||||
![APDS-9960](https://ae01.alicdn.com/kf/HTB19_5yc6gy_uJjSZLeq6yPlFXad/APDS-9960-APDS9960.jpg_640x640.jpg)
|
||||
![Adafruit APDS9960 Proximity, Light, RGB, and Gesture Sensor](https://cdn-learn.adafruit.com/assets/assets/000/046/169/medium800/light_apds.jpg?1504716001)
|
||||
|
|
Loading…
Reference in New Issue