Prev | Top | Next |
Logic for a monitored light switch with sensors for natural light and the state of the light bulb's filament
y | n | - | - | daylight.isBright() |
y | n | y | - | switch.isOn() |
y | n | n | - | bulb.isLit() |
- | x | - | - | switch.setOn(true); |
x | - | - | - | switch.setOn(false); |
- | - | x | - | bulb.alarm(); |
Prev | Top | Next |