The block set the state of the relay connected to the selected pin to High or Low. A high state means that the pin will have 3.3V and for Low, the pin will be 0 V. This triggers the state of the relay.
There are lots of pins to which a relay can be connected:
- Digital Pin: D3
- Analog Pins: A1 and A2
- Servo Pins: S1 and S2
- Touch Pins: T1, T2, T3, T4, or T5
- Expansion Board Servo Pins: EXP_1, EXP_2, EXP_3, EXP_4, EXP_5, EXP_6, EXP_7, and EXP_8.
The pin can be selected from the dropdown.