code.py
def make_button():
    """ Make a `Button` to model the MX switch and set up our
    callbacks for lighting up the LED and cycling `current_colour`.
    """

    pin = DigitalInOut(board.SWITCH)
    pin.switch_to_input(pull=Pull.DOWN)

    button = Button(pin, "button")
    button.on_press = update_current_colour
    button.on_release = schedule_future_wiggle
    button.on_held = set_led_to_current_colour
    return button
 Make a `Button` to model the MX switch and set up our
    callbacks for lighting up the LED and cycling `current_colour`.
    
Make a `Button` to model the MX switch and set up our
callbacks for lighting up the LED and cycling `current_colour`.
Make a ` Button ` to model the MX switch and set up our callbacks for lighting up the LED and cycling ` current_colour ` .
def make_button():
    pin = DigitalInOut(board.SWITCH)
    pin.switch_to_input(pull=Pull.DOWN)
    button = Button(pin, "button")
    button.on_press = update_current_colour
    button.on_release = schedule_future_wiggle
    button.on_held = set_led_to_current_colour
    return button
def make_button ( ) : pin = DigitalInOut ( board . SWITCH ) pin . switch_to_input ( pull = Pull . DOWN ) button = Button ( pin , "button" ) button . on_press = update_current_colour button . on_release = schedule_future_wiggle button . on_held = set_led_to_current_colour return button
Make a `Button` to model the MX switch and set up our
callbacks for lighting up the LED and cycling `current_colour`.
Make a ` Button ` to model the MX switch and set up our callbacks for lighting up the LED and cycling ` current_colour ` .
""" Make a `Button` to model the MX switch and set up our
    callbacks for lighting up the LED and cycling `current_colour`.
    """