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