def setup():
    global Pin1, Pin2, Pin3, Button
    Pin(Pin1, Pin.OUT)
    Pin(Pin2, Pin.OUT)
    Pin(Pin3, Pin.OUT)
    Pin(Button, Pin.IN, Pin.PULL_DOWN)