← All exercises

Either-Button Lamp

easy

Turns on a lamp when either of two push buttons is pressed.

What it teaches

Turn on the lamp when at least one button is pressed. A doorbell wired to multiple buttons has the same shape.

Inputs and outputs

TagTypeDefaultDescription
In_Button1BOOLFirst push button
In_Button2BOOLSecond push button
Out_LampBOOLLamp drive signal

Required behavior