RelaySimple API#/* Add this line to your main function * to turn on the LED*/setLed(pin, ON); /* Add this line to your main function * to turn on the LED*/setLed(pin, OFF);Copyimport commingsoon Copyvar commingsoon = 1;CopyAdvance API#/* Add this line to your main function * to turn on the LED*/setRelay(pin, ON); /* Add this line to your main function * to turn on the LED*/setRelay(pin, OFF);Copyimport commingsoon Copyvar commingsoon = 1;CopyNote:pin - Represents the physical GPIO pin number where the Relay is connected.For Example: To set Relay at pin 40 on, use API,setRelay(40, ON);CopyFacing errors with the component?#Report Component Errors Report Doc mistakes Suggest Improvements