Assertion: relay | /r/HasProperty | connected
Facets:
Source sentences:
text: In this example, what I’m showing is a constant definition (describing which analog output pin the relay is connected to) and a function called setRelay that triggers the relay.
text: The code to trigger the relay should look similar to what I’ve shown already, in the Photon example code shown below, I define some constants to tell the application which pin the relay is connected to and which pin an indicator light is connected to (its built in to the Photon).
text: For NO and COM ports, when relay is connected, LED lamp will be ON; when relay is disconnected, LED lamp will be off.