Skip to content

Commit 329d216

Browse files
committed
docs(wokwi-photoresistor-sensor): document automation controls
1 parent fb2d67a commit 329d216

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/parts/wokwi-photoresistor-sensor.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,23 @@ The bottom LED ("DO LED") is connected to the digital output, and lights wheneve
7777
7878
![Wokwi Photoresistor (LDR) Sensor Module Schematics](wokwi-photoresistor-sensor.svg)
7979
80+
## Automation controls
81+
82+
The photoresistor sensor can be controlled using [Automation Scenarios](../wokwi-ci/automation-scenarios). The names of the controls match the names of the attributes defined above:
83+
84+
| Control | Type | Description |
85+
|-------------|-------|-------------------------------------|
86+
| lux | float | Set the lux value (lux) |
87+
88+
The following example sets the illumination to 100 lux:
89+
90+
```yaml
91+
- set-control:
92+
part-id: photoresistor1
93+
control: lux
94+
value: 100
95+
```
96+
8097
## Simulator examples
8198

8299
- [Photoresistor Digital Example](https://wokwi.com/projects/305193592908939842)

0 commit comments

Comments
 (0)