Turn on or off the Relay, and output the status.
pin: int. the gpio pin which is attached by the relay
on: boolean. true means turn on, false means turn off.
status: boolean. the running status of the relay
Check the button status in every 1s. If it is pressed, turn on the relay, otherwise, turn off.